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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], 0
push 0x38
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0
push edi
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], edi
call sub.MSVCRT.dll_memset
mov ebp, dword [esp + 0x8c]
lea eax, [esp + 0x44]
mov ebx, dword [esp + 0x80]
push eax
push edi
push 1
push edi
push edi
push ebp
push dword [esp + 0xa0]
push dword [esp + 0xa0]
push ebx
call fcn.004c8520
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4c9be4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c9be4
cmp ebp, 0xffffffff
je 0x4c9a9b
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x80]
push dword [esp + 0x80]
push ebx
call fcn.004c9920
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c9be4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
cmp ebp, 0xfffffffe
jne 0x4c9acc
cmp eax, 1
jne 0x4c9ab9
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
jne 0x4c9ab9
lea esi, [ebp + 0x67]
jmp 0x4c9be4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, 1
mov dword [esp + 0x14], edi
jmp 0x4c9b3b
mov eax, dword [ebx + 0x100]
lea ecx, [ebp + 1]
imul dword [esp + 0x78]
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x7c]
cdq
add edi, eax
mov eax, ecx
adc esi, edx
cdq
shld esi, edi, 0xa
shl edi, 0xa
add edi, eax
lea eax, [esp + 0x1c]
push eax
push ecx
push dword [esp + 0x84]
adc esi, edx
mov dword [esp + 0x1c], edi
push dword [esp + 0x84]
mov dword [esp + 0x24], esi
push ebx
call fcn.004bc410
add esp, 0x14
mov esi, eax
cmp ebp, 0xffffffff
je 0x4c9b39
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jl 0x4c9b39
jg 0x4c9b32
cmp edi, dword [esp + 0x20]
jbe 0x4c9b39
mov eax, 1
jmp 0x4c9b3b
xor eax, eax
test esi, esi
jne 0x4c9be4
xor ecx, ecx
neg eax
mov dword [esp + 0x34], ecx
sbb eax, eax
mov dword [esp + 0x28], ecx
and eax, 2
mov dword [esp + 0x2c], ecx
or eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push ecx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
push ecx
push eax
push ebx
call fcn.004c9220
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c9be4
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004fea10
mov esi, eax
add esp, 8
cmp esi, 0x64
jne 0x4c9bfb
push dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push 1
push eax
push ebx
call fcn.004c93d0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4c9b81
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c9be4
push dword [edi + 0x30]
call fcn.00499150
push dword [edi + 0x24]
call fcn.00499150
push dword [edi]
call fcn.004c5fc0
push edi
call fcn.00499150
add esp, 0x10
lea eax, [esp + 0x38]
push eax
call fcn.004fe3f0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
test esi, esi
jne 0x4c9bbc
cmp ebp, 0xffffffff
je 0x4c9c2a
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebp
push dword [esp + 0x88]
push dword [esp + 0x88]
push ebx
call fcn.004bda20
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c9bbc
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4c9be4
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push ebx
call fcn.004c9760
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c9bc0
cmp ebp, 0xffffffff
je 0x4c9c77
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jg 0x4c9bc0
mov eax, dword [esp + 0x10]
jl 0x4c9c7b
cmp eax, dword [esp + 0x20]
jae 0x4c9bc0
jmp 0x4c9c7b
mov eax, dword [esp + 0x10]
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [esp + 0x1c]
push eax
push ebx
call fcn.004c73d0
add esp, 0x14
mov esi, eax
jmp 0x4c9bc0