Function at 0x4d6c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d6c5f
push eax
call dword [0x5ac218]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x4d6c7a
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x4d6c7a
push eax
call fcn.004deeb0
add esp, 4
mov ecx, dword [ebx]
test ecx, ecx
je 0x4d6c93
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4d6c93
push eax
call dword [0x5ac218]
mov ecx, dword [ebx]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4d6ca8
cmp esi, 5
je 0x4d6ca8
cmp esi, 6
jne 0x4d716f
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x34], 0
push edi
mov edi, dword [ebx + 4]
mov esi, dword [edx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4d6cd7
cmp byte [esi + 0x14], 2
jne 0x4d6cd7
mov esi, 5
jmp 0x4d6cf9
xor esi, esi
cmp byte [edx + 8], 0
jne 0x4d6cf9
push esi
push esi
push edx
call fcn.00504fd0
mov edx, dword [ebx + 0x18]
add esp, 0xc
mov edi, dword [ebx + 4]
mov esi, eax
mov dword [ebp - 0x34], 1
cmp dword [ebx + 0xc], 0
jne 0x4d6d1d
test esi, esi
jne 0x4d6d45
mov eax, dword [edx + 4]
push esi
push esi
push dword [eax + 0x24]
push edi
call fcn.00507e50
add esp, 0x10
cmp eax, 7
jne 0x4d6d21
mov esi, eax
jmp 0x4d6d45
test esi, esi
jne 0x4d6d45
cmp dword [ebx + 0xc], 0
jne 0x4d6d45
lea eax, [ebx + 8]
push eax
push 2
push dword [ebx + 4]
call fcn.00504fd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6d45
mov dword [ebx + 0xc], 1
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edi, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x18], ecx
mov al, byte [eax + 5]
mov byte [ebp - 1], al
test esi, esi
jne 0x4d6d77
cmp al, 5
jne 0x4d6d77
cmp edi, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x30]
and edx, 0x7fffffff
xor eax, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
js 0x4d6d93
cmp eax, ecx
jge 0x4d6e02
mov edi, dword [ebx + 0x10]
cmp edi, edx
ja 0x4d6e02
test esi, esi
jne 0x4d6e3d
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x5ac2d0]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x4d6df6
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d6df6
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
push edi
push ebx
call fcn.004dbc20
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d6df6
push eax
call fcn.0051eef0
add esp, 4
mov eax, dword [ebp - 0x14]
inc dword [ebx + 0x10]
inc eax
mov edx, dword [ebp - 0x10]
jmp 0x4d6d85
test esi, esi
jne 0x4d6e3d
mov eax, edx
mov dword [ebx + 0x24], edx
sub eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x10], edx
ja 0x4d6e46
cmp dword [ebx + 0x28], esi
jne 0x4d713e
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebx + 0x2c], eax
mov dword [ecx + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x4d713e
cmp esi, 0x65
jne 0x4d713e
test edx, edx
jne 0x4d6ea2
mov edi, dword [ebx + 4]
cmp byte [edi + 9], dl
je 0x4d6e63
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x4d6e63
push edi
call fcn.004deeb0
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x30], 0
push dword [edi + 4]
call fcn.004f4cc0
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x4d6e8f
add dword [edi + 0xc], 0xffffffff
jne 0x4d6e8f
push edi
call fcn.005460b0
add esp, 4
mov edi, 1
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4d6ea5
cmp esi, 0x65
jne 0x4d6eb9
jmp 0x4d6ea5
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
inc eax
push eax
push 1
push dword [ebx + 4]
call fcn.00508220
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4d713e
mov eax, dword [ebx]
test eax, eax
je 0x4d6ed0
push eax
call fcn.005240e0
add esp, 4
cmp byte [ebp - 1], 5
jne 0x4d6eed
push 2
push dword [ebx + 4]
call fcn.005080a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d713e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x4d6f2f
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov ecx, eax
lea eax, [ecx - 1]
add eax, edi
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x5ac2d0]
div dword [ecx + 0x24]
lea ecx, [edi - 1]
inc eax
cmp edi, eax
mov eax, dword [ebp - 0x10]
cmovne ecx, edi
mov dword [ebp - 0x30], ecx
mov edi, ecx
mov ecx, dword [ebp - 0x18]
jmp 0x4d6f3a
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 0x10]
imul edi, eax
mov edx, dword [ebp - 8]
cmp edx, ecx
jge 0x4d725f
imul edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
lea esp, [esp]
cmp edi, eax
ja 0x4d7003
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x5ac2d0]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x4d6ff5
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d6ff5
mov ecx, dword [ebp - 0x10]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4d6fbe
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4d6fbe
cmp dword [edx + 0x60], esi
je 0x4d6fba
push ecx
call fcn.005453a0
jmp 0x4d6fe0
xor esi, esi
jmp 0x4d6fe8
mov esi, dword [edx + 0x28]
test esi, esi
jne 0x4d6fe8
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4d6fdb
call fcn.004f6e30
jmp 0x4d6fe0
call fcn.004f8110
mov ecx, dword [ebp - 0x10]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x4d6ff5
push ecx
call fcn.0051eef0
add esp, 4
mov eax, dword [ebp - 0x28]
inc edi
test esi, esi
je 0x4d6f60
jmp 0x4d7018
test esi, esi
jne 0x4d7018
mov eax, dword [ebp - 0xc]
push 1
push esi
push eax
call fcn.0051d9e0
add esp, 0xc
mov esi, eax
mov eax, dword [0x5ac2d0]
add eax, dword [ebp - 0x18]
cdq
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
cmp ecx, edx
jg 0x4d7037
jl 0x4d7040
cmp eax, dword [ebp - 0x14]
jb 0x4d7040
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edx
mov eax, dword [0x5ac2d0]
add eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x28], eax
mov edi, eax
mov dword [ebp - 0x1c], edx
mov ecx, edx
test esi, esi
jne 0x4d713e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
cmp ecx, ebx
jg 0x4d71b8
jl 0x4d707b
cmp edi, dword [ebp - 0x20]
jae 0x4d71b8
push 0
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push esi
push edx
push eax
push ecx
push edi
call fcn.0048bae0
inc eax
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d70c5
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp - 8]
mov ecx, dword [edx]
push dword [eax + 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d7120
test byte [ecx + 0x1c], 0x20
je 0x4d7117
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.0048c6e0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [ebp - 0x28]
add esp, 0x10
mov ebx, dword [ebp - 0x10]
jmp 0x4d7120
push ecx
call fcn.0051fb60
add esp, 4
mov eax, dword [ebp - 0x38]
add edi, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
adc ecx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x4d7068
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x34], 0
pop edi
je 0x4d715c
push 0
push dword [ebx + 0x18]
call fcn.00505860
push 0
push dword [ebx + 0x18]
call fcn.00505900
add esp, 0x10
mov ecx, dword [ebx]
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebx + 0x1c], esi
test ecx, ecx
je 0x4d7184
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4d7184
push eax
call dword [0x5ac220]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x4d719c
add dword [eax + 0xc], 0xffffffff
jne 0x4d719c
push eax
call fcn.005460b0
add esp, 4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4d71b0
push eax
call dword [0x5ac220]
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4d713b
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d713b
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x3c], ecx
jl 0x4d71ff
jg 0x4d71ee
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x40], eax
jbe 0x4d71ff
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4d713b
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4d7218
lea eax, [esi + 0xc]
jmp 0x4d7228
push 0
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov edx, dword [ebp - 0xc]
add esp, 0xc
xor esi, esi
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x4d725a
cmp byte [edx + 7], 0
jne 0x4d725a
movzx ecx, byte [edx + 0xa]
mov edx, dword [edx + 0x3c]
test ecx, ecx
je 0x4d7258
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov ebx, dword [ebp + 8]
add esp, 8
mov esi, eax
jmp 0x4d7274
xor esi, esi
mov ebx, dword [ebp + 8]
jmp 0x4d7274
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
mov dword [eax + 0x18], edi
call fcn.0051d9e0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4d713e
push esi
push dword [ebx + 4]
call fcn.00505900
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
jmp 0x4d713e