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

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x250]
imul ecx, dword [esi + 0x1b8]
mov ebx, dword [esi + 0x184]
mov edx, dword [esi + 0x188]
push edi
mov edi, dword [esi + 0x240]
add edi, ebx
mov ebx, dword [esi + 0x244]
add ebx, edx
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esi + 0x254]
imul ecx, dword [esi + 0x1bc]
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0x51eb851f
imul ecx
movsx ecx, word [esi + 0x1c0]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx edx, word [esi + 0x1c2]
mov dword [esp + 0x18], eax
movsx eax, word [esi + 0x258]
add eax, ecx
mov dword [esp + 0x1c], eax
movsx eax, word [esi + 0x25a]
add eax, edx
mov dword [esp + 0x10], eax
jns 0x4c7e99
mov dword [esp + 0x10], 0
jmp 0x4c7ea8
cmp eax, 0x100
jle 0x4c7ea8
mov dword [esp + 0x10], 0x100
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.004c7900
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, edi
sub eax, ecx
mov ecx, ebx
sub ecx, edx
mov edx, dword [esi + 0x180]
shr edx, 0xb
test dl, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
je 0x4c7ee6
lea edx, [esi + 0x1a0]
mov dword [esp + 0x14], edx
jmp 0x4c7eee
mov dword [esp + 0x14], 0
mov edx, dword [esi + 0x1b0]
test edx, edx
jge 0x4c7f59
mov edx, dword [esi + 0x198]
mov edi, dword [esi + 0x78]
add edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x19c]
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.004ca000
lea ecx, [esi + 0x68]
cmp edi, ecx
je 0x4c81c2
mov ecx, dword [edi + 8]
mov edi, dword [esp + 0x4c]
mov edx, dword [ecx]
push edi
lea edi, [esp + 0x3c]
push edi
mov edi, dword [eax + 0x50]
push edi
mov edi, dword [eax + 0x4c]
push edi
push eax
mov eax, dword [esi + 0x88]
push 0
push 0
push eax
call dword [edx + 0x30]
jmp 0x4c81c2
mov eax, dword [esi + 0x1b4]
cmp dword [esi + 0x94], eax
ja 0x4c7f69
xor eax, eax
push eax
lea ecx, [esi + 0x8c]
call fcn.00435120
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4c7fd6
mov ecx, dword [0x5683f8]
push 0x53db88
push 0x53db7c
push eax
push ecx
lea edx, [esp + 0x40]
mov esi, 0x53db0c
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0x5b0
call fcn.00433f60
push 0x530474
lea eax, [esp + 0x48]
push 0
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x5b1
call fcn.0041ce50
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 4
mov ecx, dword [esi + 0x80]
test cl, 0x11
je 0x4c8018
test cl, 2
jne 0x4c8010
lea edx, [esi + 0x198]
lea ecx, [esi + 0x1d0]
push edx
call fcn.0042ab20
push 0
lea ecx, [esi + 0x1d0]
call fcn.0042aa00
mov ecx, esi
call fcn.004c7310
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.004c73f0
cmp ebp, 0x64
jne 0x4c8097
cmp dword [esp + 0x18], ebp
jne 0x4c8097
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c8097
mov eax, dword [esp + 0x4c]
movzx ecx, byte [esi + 0x1c4]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esi + 0xe8]
push 0
push ecx
mov ecx, dword [esi + 0xe4]
push edx
push 0
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x88]
lea edx, [esi + 0x98]
push edx
push ebx
push edi
push eax
push 0
push 0
push ecx
call fcn.004b0630
mov eax, dword [esi + 0x88]
push ebx
push edi
push 0
lea edx, [esi + 0xec]
push edx
add eax, 0x54
push eax
call fcn.0041e9a0
add esp, 0x4c
jmp 0x4c81c2
mov eax, ebp
cdq
shld edx, eax, 0x10
push 0
push 0x64
shl eax, 0x10
push edx
push eax
call fcn.0051e370
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cdq
shld edx, eax, 0x10
push 0
push 0x64
shl eax, 0x10
push edx
push eax
call fcn.0051e370
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
cdq
shld edx, eax, 0x10
push 0
push 0xe10
shl eax, 0x10
push edx
push eax
call fcn.0051e370
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x198]
and ecx, 0xfffffffe
mov ebp, eax
lea eax, [edx + edx]
mov edx, dword [esp + 0x2c]
sub ecx, eax
shl ecx, 0xf
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x19c]
and ecx, 0xfffffffe
lea eax, [edx + edx]
sub ecx, eax
shl ecx, 0xf
mov dword [esp + 0x2c], ecx
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, edx
push eax
call fcn.004af8b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebp
push ecx
push edx
mov edx, dword [esp + 0x48]
mov eax, ebx
shl eax, 0x10
add eax, edx
movzx edx, byte [esi + 0x1c4]
push eax
mov eax, dword [esp + 0x48]
mov ecx, edi
shl ecx, 0x10
add ecx, eax
movsx eax, word [esi + 0x1c2]
push ecx
mov ecx, dword [esi + 0xe8]
push edx
mov edx, dword [esi + 0xe4]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esi + 0x88]
lea eax, [esi + 0x98]
push eax
push ecx
push edx
call fcn.004b01a0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
add esp, 0x44
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
mov edx, dword [esi + 0x88]
push eax
shl ebx, 0x10
push ebx
shl edi, 0x10
push edi
push 0
lea ecx, [esi + 0xec]
push ecx
add edx, 0x54
push edx
call fcn.0041ea70
add esp, 0x28
mov eax, dword [esi + 0x80]
and eax, 0xfffffff8
pop edi
mov dword [esi + 0x80], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x38
ret 4