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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
cmp dword [esi + 0x10], 0x10
jne 0x4c7bf0
mov edx, dword [0xa23398]
add esi, 0x14
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0xa]
mov cx, word [esi + 8]
mov di, word [esi + 6]
push eax
mov eax, dword [0xa23394]
push ecx
push edx
push eax
mov dword [esp + 0x28], esi
call fcn.004259d0
mov ebp, edx
xor ecx, ecx
mov cx, word [esi + 0xe]
xor edx, edx
mov dx, word [esi + 0xc]
mov ebx, eax
mov eax, dword [0xa23398]
push ecx
mov ecx, dword [0xa23394]
push edx
push eax
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebp
call fcn.004259d0
add esp, 0x20
cmp di, 0x6000
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jb 0x4c7bf0
cmp di, 0x7fff
ja 0x4c7bf0
mov eax, dword [0x6d67a8]
and edi, 0xffff
cmp edi, eax
mov dword [esp + 0x1c], edi
jne 0x4c76bd
xor edx, edx
mov dword [0x6454a8], 0
mov dx, word [esi]
push edx
call fcn.0041b500
add esp, 4
jmp 0x4c7750
lea eax, [esp + 0x40]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, 0x6d6208
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0
call fcn.00408bd0
mov edx, dword [eax]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov eax, dword [eax + 4]
push ecx
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], eax
call fcn.0045bbb0
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov edx, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x6c], edx
je 0x4c7bf0
push eax
call fcn.0051be10
add esp, 4
test al, al
jne 0x4c7bf0
push edi
push 0
mov ecx, 0xa24690
call fcn.0047a840
test eax, eax
je 0x4c7750
push 1
push esi
mov ecx, 0x68ec20
call fcn.00412f80
push eax
push edi
push 0
mov ecx, 0xa24690
call fcn.0047abf0
mov esi, dword [0x6d620c]
lea eax, [esp + 0x74]
push eax
mov ecx, 0x6d6208
mov dword [esp + 0x78], edi
call fcn.00409380
mov ecx, dword [0x6d620c]
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x4c7786
mov edx, dword [esp + 0x74]
cmp edx, dword [eax + 0xc]
jb 0x4c7786
lea eax, [esp + 0x10]
jmp 0x4c778e
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x74]
cmp dword [eax], esi
jne 0x4c77d7
mov eax, dword [0xa4f188]
cmp ebx, eax
jl 0x4c7bf0
add eax, 0x9c
cmp ebx, eax
jge 0x4c7bf0
mov eax, dword [0xa4f18c]
cmp ebp, eax
jl 0x4c7bf0
add eax, 0x184
cmp ebp, eax
jge 0x4c7bf0
push edi
call fcn.00456100
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x40]
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, 0x6d6208
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0
call fcn.00408bd0
mov edx, eax
mov eax, dword [edx]
mov esi, dword [eax + 0x10]
mov ecx, dword [edx + 4]
test esi, esi
mov dword [esp + 0x5c], ecx
je 0x4c7bf0
mov eax, dword [esi + 0x250]
cmp eax, 0xc
je 0x4c7bf0
cmp eax, 8
je 0x4c7bf0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x800]
lea ebx, [esi + 0x7fc]
push ebp
push ebx
mov dword [ebx], edx
mov dword [ebp], eax
call fcn.0045f7e0
mov eax, dword [0x6d67a8]
add esp, 8
cmp edi, eax
je 0x4c786b
mov ecx, dword [0xa4f198]
mov edx, dword [ebx]
mov eax, dword [ebp]
sub edx, ecx
mov dword [ebx], edx
mov edx, dword [0xa4f19c]
sub eax, edx
mov dword [ebp], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x430]
mov dword [esi + 0x338], eax
mov dword [esi + 0x33c], ecx
lea edi, [ebx + 0x14]
lea ebp, [ebx + 4]
mov edx, edi
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 0xc]
mov edx, ebp
mov dword [esp + 0x54], ecx
mov eax, dword [edx]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x60], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x58]
mov dword [esp + 0x64], ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0045b790
mov dword [esp + 0x74], eax
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x58]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x40], edx
call fcn.0045b790
mov ecx, edi
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], eax
call fcn.0045b790
cmp dword [esp + 0x10], eax
jae 0x4c79c9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [edx + 8], eax
mov eax, esp
mov dword [edx + 0xc], ecx
mov edx, ebp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x60]
push eax
call fcn.0045cba0
mov edi, dword [esp + 0xa8]
add esp, 0x34
test edi, edi
jbe 0x4c7a52
mov ecx, ebx
call fcn.0045b650
dec edi
jne 0x4c79ba
jmp 0x4c7a52
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x7c]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x60]
push ecx
call fcn.0045cc40
mov edi, dword [esp + 0xa8]
add esp, 0x34
test edi, edi
jbe 0x4c7a52
mov ecx, ebx
call fcn.0045a570
dec edi
jne 0x4c7a48
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c7a85
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.0045b6e0
mov edi, dword [esi + 0x468]
lea ecx, [esi + 0x460]
mov eax, edi
mov edx, dword [ecx + 4]
cmp eax, edi
je 0x4c7aa8
mov ebx, dword [eax]
add eax, 4
mov dword [edx], ebx
add edx, 4
cmp eax, edi
jne 0x4c7a9a
mov ebx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
xor edi, edi
mov dword [ecx + 8], edx
cmp word [ebx], di
mov dword [esp + 0x74], eax
jbe 0x4c7bd5
mov edi, edx
mov edx, dword [ecx + 4]
mov eax, edi
cmp eax, edi
je 0x4c7ada
mov ebp, dword [eax]
add eax, 4
mov dword [edx], ebp
add edx, 4
cmp eax, edi
jne 0x4c7acc
mov eax, dword [ecx + 8]
mov dword [ecx + 8], edx
xor edx, edx
mov dword [esp + 0x74], eax
mov dx, word [ebx]
lea eax, [esp + 0x74]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 8]
push eax
push 1
push edx
call fcn.00478080
mov eax, dword [esi + 0x464]
mov dword [esi + 0x470], eax
movzx di, byte [ebx + 4]
xor ebx, ebx
push edi
mov dword [esi + 0x830], ebx
call fcn.0040eed0
mov ecx, dword [esi + 0x470]
add esp, 4
mov dword [esi + 0x7f8], eax
mov edx, dword [ecx]
push 1
push edx
mov ecx, esi
call fcn.0040db40
mov ecx, esi
call fcn.00476d00
test eax, eax
je 0x4c7b6b
push 1
push 1
mov ecx, esi
call fcn.00451ca0
and edi, 0xffff
mov ecx, esi
push edi
push 8
call fcn.00476c30
mov dword [esi + 0x378], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x388], ebx
cmp eax, dword [0x6d67a8]
jne 0x4c7b87
mov dword [0x6454a8], 1
mov eax, dword [esi + 0x338]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4c7ba1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x33c]
cmp ecx, edx
je 0x4c7bb8
mov edx, dword [esi + 0x33c]
push 0x7d1
push ebx
push edx
push eax
push esi
call fcn.00458e10
add esp, 0x14
mov eax, dword [esi + 0x254]
mov ecx, esi
push eax
push ebx
call fcn.00476c30
mov dword [esi + 0x378], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ecx, dword [esi + 0x254]
mov dword [esi + 0x388], edi
push ecx
push edi
mov ecx, esi
call fcn.00476c30
mov dword [esi + 0x378], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret