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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 0xc]
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004c5f30
mov ecx, dword [esi + 0x280]
sub ecx, dword [esi + 0x664]
mov edi, dword [esi + 0x278]
mov edx, dword [esi + 0x27c]
mov eax, dword [esi + 0x284]
add edi, dword [esi + 0x65c]
add edx, dword [esi + 0x660]
sub eax, dword [esi + 0x668]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x678]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x4d6d55
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4d6d55
mov ecx, dword [esi + 0x678]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x67c]
test ecx, ecx
je 0x4d6d7d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4d6d7d
mov ecx, dword [esi + 0x67c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x654], 0
jne 0x4d6d8d
push 0
jmp 0x4d7147
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x67c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x4d6dc9
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4d6dc9
mov eax, dword [esi + 0x67c]
add edi, dword [eax + 0x650]
mov dword [esp + 0x30], edi
xor ecx, ecx
xor edi, edi
cmp dword [esi + 0x654], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
jle 0x4d6ed1
mov ecx, dword [esi + 0x650]
mov edx, dword [esp + 0x14]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc0]
mov ecx, edi
call edx
test al, al
je 0x4d6eb4
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
jne 0x4d6eb4
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
mov eax, dword [eax + 0x134]
push ebx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x2c], 0
jne 0x4d6e42
inc dword [esp + 0x10]
jmp 0x4d6e80
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jge 0x4d6e5e
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x4d6e80
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
add dword [esp + 0x18], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x654]
mov dword [esp + 0x14], eax
jl 0x4d6de9
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x66c]
dec eax
imul edx, eax
mov dword [esp + 0x24], eax
xor eax, eax
add ecx, edx
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
jle 0x4d6f08
mov eax, ebx
sub eax, ecx
cdq
idiv edi
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x678]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x4d6f37
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x4d6f37
mov ecx, dword [esi + 0x678]
sub edi, dword [ecx + 0x654]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x67c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x4d6f66
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x4d6f66
mov ecx, dword [esi + 0x67c]
sub edi, dword [ecx + 0x654]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x654], 0
mov dword [esp + 0x14], 0
jle 0x4d7137
mov edx, dword [esi + 0x650]
mov eax, dword [esp + 0x14]
mov edi, dword [edx + eax*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc0]
mov ecx, edi
call eax
test al, al
je 0x4d7122
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x4d6fc2
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x22c]
push eax
mov ecx, esi
call edx
jmp 0x4d7122
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x134]
push ebx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x2c], 0
mov ecx, edi
jne 0x4d7002
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
call eax
cmp dword [esp + 0x2c], eax
jge 0x4d701c
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x2c], eax
jle 0x4d703e
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4d705f
mov eax, ebx
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
test eax, eax
jge 0x4d7069
mov dword [esp + 0x28], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jge 0x4d7085
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
cmp dword [esp + 0x28], eax
jle 0x4d70a1
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add ebx, eax
add edx, ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x28]
add ecx, ebx
mov ebx, dword [esp + 0x2c]
add ecx, dword [esp + 0x1c]
add eax, ebx
add eax, dword [esp + 0x10]
mov ebx, dword [edi]
mov dword [esp + 0x5c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x66c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x44]
add eax, ecx
add dword [esp + 0x10], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x44]
add eax, edx
add dword [esp + 0x18], edi
sub ebx, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x654]
mov dword [esp + 0x14], eax
jl 0x4d6f7b
mov eax, dword [esi + 0x66c]
imul eax, dword [esp + 0x24]
add eax, dword [esp + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x230]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10