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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 0x13c]
push ecx
call fcn.004c9f90
test eax, eax
jne 0x4c7f58
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
mov eax, dword [ebp + 0xc]
xor edi, edi
lea esi, [esp + 0x90]
mov dword [esp + 0x6c], 0x18
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call fcn.004bc770
push 4
lea ecx, [esp + 0x18]
push ecx
call dword [0x10075f84]
mov edx, esi
push edx
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x78]
call fcn.004c66d0
push 4
lea ecx, [esp + 0x10]
push ecx
call dword [0x10075f84]
mov eax, dword [esp + 0xb0]
cmp eax, edi
jne 0x4c8007
mov esi, dword [esp + 0xa8]
cmp esi, edi
je 0x4c7fd6
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4c7fe6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
mov dword [esp + 0xc], esi
je 0x4c83be
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x4c83be
cmp eax, 2
jne 0x4c8572
mov ebx, dword [esp + 0xac]
cmp ebx, edi
mov dword [esp + 0x20], ebx
je 0x4c8027
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
mov ecx, ebx
call edx
test eax, eax
je 0x4c8077
mov eax, dword [ebp + 0x34]
lea esi, [esp + 0x90]
mov dword [eax], edi
call fcn.004bc7e0
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebx]
neg eax
sbb eax, eax
and eax, 6
add eax, 0xc0000034
mov dword [ecx], eax
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4c8594
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c8590
mov eax, dword [esp + 0xc0]
push 4
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x34], eax
call dword [0x10075f84]
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
mov dword [esp + 0x14], ebx
call eax
push 0x200
xor eax, eax
mov dword [esp + 0x6c], 0xff
call fcn.004b15e0
add esp, 4
mov dword [esp + 0x60], eax
mov word [eax], di
push 0x200
xor eax, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], 0xff
call fcn.004b15e0
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edi
mov word [eax], di
je 0x4c837a
mov edx, dword [ebx]
mov eax, dword [edx + 0x74]
mov ecx, ebx
call eax
test al, 0x10
je 0x4c84c4
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x4c812e
mov ecx, dword [esp + 0x48]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4c812e
push 0x10060788
lea esi, [esp + 0x4c]
call fcn.00497c00
mov edx, dword [esp + 0x2c]
push edx
lea esi, [esp + 0x4c]
call fcn.00497c00
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
call fcn.004bc840
add esp, 4
cmp dword [esp + 0x28], 0xffffffff
je 0x4c853e
mov esi, 0xff
push 0x200
xor eax, eax
mov dword [esp + 0x48], esi
call fcn.004b15e0
add esp, 4
mov dword [esp + 0x3c], eax
mov word [eax], di
push 0x200
xor eax, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], esi
call fcn.004b15e0
mov word [eax], di
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x34], eax
add esp, 4
lea eax, [esp + 0x84]
push eax
mov ecx, ebx
mov dword [esp + 0x38], edi
call edx
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
push ecx
push eax
call fcn.004bc010
mov eax, dword [esp + 0x94]
add esp, 0x10
cmp eax, edi
je 0x4c81e9
call fcn.004b16a0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov esi, dword [esp + 0x34]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
neg esi
lea eax, [esp + 0x6c]
sbb esi, esi
and esi, dword [esp + 0x30]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push edi
push edi
push edi
push esi
push edx
push ecx
shr eax, 3
lea ecx, [esp + 0x28]
and eax, 2
push ecx
call fcn.004cfb90
mov eax, dword [esp + 0x88]
add esp, 0x1c
cmp eax, edi
je 0x4c8242
call fcn.004b16a0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
cmp dword [esp + 0x1c], edi
mov esi, dword [esp + 0x10]
jne 0x4c827c
cmp esi, edi
mov dword [esp + 0x1c], esi
je 0x4c825c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x3c]
push ecx
lea edi, [esp + 0x64]
call fcn.00498aa0
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x58]
call fcn.00498aa0
xor edi, edi
jmp 0x4c8290
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0x54]
push esi
push ecx
push edx
mov ecx, ebx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
cmp esi, edi
mov ebx, esi
je 0x4c82a6
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4c82b6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp esi, edi
mov dword [esp + 0xc], esi
je 0x4c82c6
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov edx, dword [esp + 0x98]
cmp edx, dword [esp + 0x9c]
jb 0x4c82dc
mov dword [esp + 0x24], edi
jmp 0x4c8301
xor ecx, ecx
cmp word [edx], di
mov eax, edx
je 0x4c82f0
add eax, 2
add ecx, 1
cmp word [eax], di
jne 0x4c82e5
lea eax, [edx + ecx*2 + 2]
mov ecx, edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x24], ecx
cmp esi, edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
je 0x4c8319
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4c8332
call fcn.004b16a0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x4c834b
call fcn.004b16a0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x4c8364
call fcn.004b16a0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp dword [esp + 0x24], edi
jne 0x4c80ed
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
push ecx
push eax
mov eax, dword [esp + 0x68]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x54]
call fcn.004894f0
lea ecx, [esp + 0x60]
call fcn.004894f0
lea esi, [esp + 0x10]
call fcn.004a2a60
lea esi, [esp + 0x1c]
call fcn.004a2a60
lea esi, [esp + 0x20]
call fcn.004a2a60
mov ebx, dword [ebp + 8]
push 4
lea eax, [esp + 0x1c]
push eax
call dword [0x10075f84]
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0xc]
push edx
add ebx, 0x11c
push ebx
call fcn.004c8b80
test eax, eax
jne 0x4c8455
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4c8401
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004bbde0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
je 0x4c8424
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4c8436
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4c8446
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.004c8990
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0xc]
cmp esi, edi
je 0x4c8468
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
mov edi, esi
call fcn.004b3790
mov ecx, dword [ebp + 0x30]
xor edi, edi
cmp esi, edi
mov dword [ecx], eax
je 0x4c84a2
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [esp + 0x18]
cmp eax, edi
mov ecx, dword [ebp + 0x34]
mov dword [ecx], edi
je 0x4c805e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], edi
jmp 0x4c805e
mov edx, dword [ebp + 0x34]
lea esi, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [edx], edi
call fcn.004bc7e0
mov ecx, dword [ebp + 0x30]
neg eax
sbb eax, eax
and eax, 6
add eax, 0xc0000034
mov dword [ecx], eax
lea ecx, [esp + 0x54]
call fcn.004894f0
lea ecx, [esp + 0x60]
call fcn.004894f0
lea esi, [esp + 0x10]
call fcn.004a2a60
lea esi, [esp + 0x1c]
call fcn.004a2a60
lea esi, [esp + 0x20]
call fcn.004a2a60
lea esi, [esp + 0xc]
call fcn.004a2a60
lea esi, [esp + 0x14]
call fcn.004a2a60
lea esi, [esp + 0x90]
call fcn.004bea90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
mov edx, dword [ebp + 0x34]
lea esi, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [edx], edi
call fcn.004bc7e0
mov ecx, dword [ebp + 0x30]
neg eax
sbb eax, eax
and eax, 6
add eax, 0xc0000034
mov dword [ecx], eax
lea ecx, [esp + 0x48]
call fcn.004894f0
jmp 0x4c84ea
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0xc]
cmp eax, edi
mov dword [ecx], 0xc0000034
je 0x4c8594
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4c85a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], edi
lea esi, [esp + 0x90]
call fcn.004bea90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30