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

Disassembly:
sub esp, 0xcb0
mov eax, dword [0x93e25c]
mov ecx, dword [esp + 0xcb4]
mov dword [esp + 0xcac], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0x4a0]
push ebp
xor ebp, ebp
push esi
mov esi, dword [edx + 0xec]
cmp esi, ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
je 0x4c48d8
cmp dword [esi + 0x1c], 1
jne 0x4c48d8
cmp dword [esi + 0xdc0], ebp
jne 0x4c411b
cmp dword [esi + 0xd1c], ebp
je 0x4c48d8
mov eax, dword [esi + 0xd04]
cmp dword [eax + 0x84], 2
je 0x4c48d8
mov ecx, dword [ecx]
cmp dword [ecx + 0x100], ebp
je 0x4c48d8
mov eax, dword [esi + 0xda8]
push ebp
push 1
push eax
lea edx, [esi + 0xd54]
push edx
mov ecx, esi
mov dword [esp + 0x64], eax
call fcn.00405425
test eax, eax
jne 0x4c48d8
mov eax, dword [esi + 0xc54]
cmp dword [eax], ebp
push ebx
push edi
je 0x4c41f3
mov ebx, eax
mov edi, dword [ebx]
cmp edi, ebp
je 0x4c41f3
mov eax, dword [edi]
mov ecx, edi
add ebx, 4
call dword [eax + 0x158]
cmp eax, 6
jne 0x4c4194
mov dword [esp + 0x44], 1
jmp 0x4c41af
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x158]
cmp eax, 7
jne 0x4c42bf
mov dword [esp + 0x3c], 1
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
test eax, eax
jne 0x4c42bf
cmp dword [esp + 0x24], ebp
jne 0x4c41d9
mov dword [esp + 0x24], edi
jmp 0x4c41ed
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 1
push edi
call dword [edx + 0x20]
test eax, eax
je 0x4c42bf
mov edi, dword [ebx]
cmp edi, ebp
jne 0x4c4178
cmp dword [esi + 0xd1c], ebp
je 0x4c421e
mov eax, dword [esp + 0x5c]
mov edi, dword [eax]
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x4c421e
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jne 0x4c42bf
mov edi, dword [edi]
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x4c4208
mov edi, dword [esi + 0xdc0]
cmp edi, ebp
je 0x4c4240
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jne 0x4c42bf
mov edi, dword [edi]
cmp edi, ebp
jne 0x4c4228
mov eax, dword [esp + 0x28]
fld qword [0x73b498]
mov ebx, dword [eax + 0x48]
fstp qword [esp + 0x80]
mov eax, dword [eax]
fld qword [0x73b498]
mov eax, dword [eax + 0x100]
fstp qword [esp + 0xa0]
mov ecx, dword [esp + 0xcc4]
imul eax, eax, 0x2c
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
mov edi, dword [ecx + 0x13c]
add eax, ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x7c], edi
mov dword [esp + 0x1c], ebp
jne 0x4c42dc
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0xcac]
call fcn.006cedd0
add esp, 0xcb0
ret
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.006cfb80
mov ecx, dword [esi + 0x30]
mov ebp, dword [esi + 0x34]
and eax, ecx
and edx, ebp
or eax, edx
je 0x4c47b3
cmp edi, 0x40
jae 0x4c43a7
cmp dword [esp + 0x1c], edi
je 0x4c43a7
mov edi, esi
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
call dword [edx + 0x14c]
test ah, ah
jns 0x4c43a7
mov eax, dword [edi]
mov ebp, dword [eax + 0xf8]
xor esi, esi
test ebp, ebp
jbe 0x4c43a7
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xb30]
mov edx, dword [eax + 0xb34]
mov edi, dword [edi + 0x14]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [esp + 0x90]
cmp eax, dword [edx + 0x28]
jne 0x4c439f
mov ecx, dword [esp + 0x94]
cmp ecx, dword [edx + 0x2c]
jne 0x4c439f
mov eax, dword [ebx + 0x18]
cmp dword [eax], edx
mov ecx, dword [ebx + 8]
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*8]
je 0x4c439f
lea ebx, [ebx]
add eax, 0x18
cmp eax, ecx
je 0x4c47b3
cmp dword [eax], edx
jne 0x4c4390
inc esi
add edi, 4
cmp esi, ebp
jb 0x4c4360
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0xdc0]
xor ebp, ebp
cmp edi, ebp
je 0x4c440a
mov eax, dword [ebx + 8]
mov ebp, dword [ebx + 0x18]
lea edx, [eax + eax*2]
lea esi, [ebp + edx*8]
cmp ebp, esi
je 0x4c44f0
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x74]
mov eax, dword [ebp]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
test eax, eax
je 0x4c47b3
movzx ecx, word [ebp + 0xe]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov edi, dword [edi]
add eax, ecx
inc edx
add ebp, 0x18
test edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jne 0x4c43c4
jmp 0x4c44f0
cmp dword [eax + 0xd1c], ebp
je 0x4c44f0
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
mov dword [esp + 0xb8], eax
mov eax, dword [eax + 4]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x4c44cd
mov eax, dword [eax + 0x74]
mov ebx, dword [esp + 0x14]
push eax
call fcn.004bcab0
mov esi, eax
add esp, 4
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.006cfb80
mov ecx, eax
mov ebx, edx
and ecx, ebp
and ebx, edi
or ecx, ebx
jne 0x4c44ae
cmp esi, 1
jb 0x4c47b3
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0xda8]
cmp esi, dword [ecx + 8]
ja 0x4c47b3
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x18]
lea ecx, [esi + esi*2]
movzx ecx, word [ebx + ecx*8 - 0xa]
mov ebx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x10]
or ebp, eax
mov eax, dword [esp + 0x18]
or edi, edx
inc ecx
cmp eax, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ecx
ja 0x4c44ae
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0xb8]
mov eax, dword [edx]
mov dword [esp + 0xb8], eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x4c4434
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, 1
shl eax, cl
shrd ebp, edi, 1
dec eax
cdq
shr edi, 1
cmp eax, ebp
jne 0x4c47b3
cmp edx, edi
jne 0x4c47b3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c4520
mov eax, dword [eax + 0x74]
push eax
call fcn.004bcab0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jbe 0x4c47b3
mov edx, dword [ebx + 0x18]
lea ecx, [eax + eax*2]
lea esi, [edx + ecx*8 - 0x18]
mov dword [esp + 0x34], esi
jmp 0x4c4524
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x18]
lea edx, [eax + eax*2]
lea edi, [ecx + edx*8]
mov edx, dword [esp + 0x10]
cmp edx, eax
mov dword [esp + 0x18], edi
jae 0x4c4544
lea eax, [edx + edx*2]
lea ebp, [ecx + eax*8]
jmp 0x4c4546
xor ebp, ebp
test esi, esi
je 0x4c4553
cmp esi, edi
jae 0x4c4553
lea edi, [esi + 0x18]
jmp 0x4c4555
xor edi, edi
test ebp, ebp
mov dword [esp + 0x2c], edi
je 0x4c4642
test esi, esi
je 0x4c4582
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x4c4642
mov eax, dword [esp + 0xcc8]
test eax, eax
je 0x4c45de
mov edx, dword [esp + 0xcc4]
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0xa8]
mov edi, eax
call fcn.004bcb10
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push eax
lea ecx, [esp + 0xd0]
mov eax, ebp
call fcn.004bc930
add esp, 0x14
test eax, eax
je 0x4c47b3
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
jmp 0x4c4642
test esi, esi
je 0x4c45ff
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jg 0x4c47b3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xdc8]
test ecx, ecx
je 0x4c4642
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 0xdc8]
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], ebp
mov edx, dword [ecx]
push 0x40768f
call dword [edx + 0xd4]
test eax, eax
jne 0x4c47b3
test edi, edi
je 0x4c4683
cmp edi, dword [esp + 0x18]
mov eax, edi
je 0x4c4683
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xb30]
mov ebx, dword [ecx + 0xb34]
mov edi, edi
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
cmp esi, edx
jne 0x4c4674
mov ecx, dword [ecx + 0x2c]
cmp ecx, ebx
je 0x4c47b3
mov ecx, dword [esp + 0x18]
add eax, 0x18
cmp eax, ecx
jne 0x4c4660
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c46a2
sub edi, ebp
mov ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4c46a4
xor eax, eax
mov esi, dword [esp + 0x10]
lea edx, [esi + eax]
mov eax, dword [esp + 0xcc8]
test eax, eax
mov dword [esp + 0x40], edx
je 0x4c4716
mov ecx, dword [esp + 0xcc4]
mov edx, dword [ecx + 0x13c]
xor eax, eax
test edx, edx
jbe 0x4c46e3
mov esi, dword [esp + 0x1c]
add ecx, 0x140
cmp esi, dword [ecx]
je 0x4c46e3
inc eax
add ecx, 4
cmp eax, edx
jb 0x4c46d7
mov ecx, dword [esp + 0xcc8]
mov ecx, dword [ecx + eax*4 + 4]
mov esi, dword [esp + 0xcc4]
push ecx
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x80], ecx
call fcn.004c1400
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x54]
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0xcd0]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push edi
push eax
mov eax, dword [esp + 0x40]
push esi
push ecx
push ebx
call fcn.004bcb50
fld qword [esp + 0xc4]
fld qword [0x76a790]
add esp, 0x24
fmul st(1)
fsubr qword [esp + 0x80]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4c47b1
mov edx, dword [esp + 0x1c]
fstp qword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], eax
jmp 0x4c47b3
fstp st(0)
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
xor esi, esi
add ebx, 0x2c
inc ecx
cmp ebx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
jne 0x4c42d8
mov edi, dword [esp + 0x6c]
cmp edi, esi
je 0x4c42bf
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xdc8]
cmp eax, esi
je 0x4c481e
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x4c481e
mov edx, dword [edi + 4]
shr edx, 0xa
and edx, 1
push edx
push ecx
push eax
call fcn.004c26c0
add esp, 0xc
test eax, eax
je 0x4c42bf
mov eax, dword [esp + 0xcc4]
mov eax, dword [eax + 0x110]
push 0xc50
push eax
call fcn.005d8dd0
add esp, 8
cmp eax, esi
je 0x4c42bf
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0xcc8]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push ecx
mov ecx, dword [esp + 0x44]
xor edx, edx
cmp edx, ecx
push ebx
sbb edx, edx
lea ebp, [esp + 0xcc]
and edx, ebp
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push ecx
mov ecx, eax
call fcn.0040a2a9
cmp eax, esi
je 0x4c42c1
cmp ebx, esi
je 0x4c48b0
cmp dword [eax + 0xc48], esi
je 0x4c42bf
fld qword [esp + 0x80]
mov edx, dword [esp + 0x50]
pop edi
fstp qword [eax + 8]
pop ebx
pop esi
mov dword [eax + 0x10], edx
pop ebp
mov ecx, dword [esp + 0xcac]
call fcn.006cedd0
add esp, 0xcb0
ret
mov ecx, dword [esp + 0xcb4]
pop esi
xor eax, eax
pop ebp
call fcn.006cedd0
add esp, 0xcb0
ret