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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 8], 1
jle 0x4c1110
push 0x48
call fcn.0050b264
add esp, 4
test eax, eax
je 0x4c0d22
mov ecx, eax
call fcn.004c0090
mov ebx, eax
jmp 0x4c0d24
xor ebx, ebx
mov dword [ebx + 0x10], 0
mov ecx, dword [esi + 8]
dec ecx
js 0x4c0d89
mov edi, dword [esi + 4]
fld qword [ebp + 8]
fmul qword [0x520168]
lea edx, [edi + ecx*4]
mov eax, dword [edx]
fld qword [eax + 0x188]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4c0d5d
dec ecx
sub edx, 4
test ecx, ecx
jge 0x4c0d40
fstp st(0)
jmp 0x4c0d89
mov edx, dword [edi + ecx*4]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
fstp st(0)
lea edi, [edx + ecx*4]
je 0x4c0d86
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
nop
call fcn.00609103
add esp, 0xc
dec dword [esi + 8]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4c1104
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
add eax, 0xc
push edi
push eax
call fcn.004c0940
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
lea eax, [edi + 0x10]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
add eax, 0xc
push eax
call fcn.004c0a00
lea ecx, [esp + 0x68]
lea edx, [esp + 0x78]
lea eax, [edi + 0x20]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
add eax, 0xc
push eax
call fcn.004c0ac0
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x8c]
add edi, 0x30
push ecx
push edx
add eax, 0xc
push edi
push eax
call fcn.004c0b90
mov ecx, dword [0x529850]
mov edx, dword [0x529854]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 8]
add esp, 0x40
dec eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
js 0x4c10fd
mov ecx, dword [esi + 4]
mov edi, dword [ecx + eax*4]
fld qword [edi + 0x188]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x4c10ee
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
add edi, 0xc
mov dword [esp + 0x14], 0
push edi
push edx
push eax
call fcn.004bff80
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0x10]
push edi
mov esi, eax
push ecx
push edx
mov dword [esp + 0x30], esi
call fcn.004bfff0
add esp, 0x18
cmp eax, esi
jge 0x4c0e89
mov esi, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 1
call fcn.0048ff50
test al, al
jne 0x4c0eb3
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
push 1
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call fcn.0048ff50
test al, al
je 0x4c0fd1
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x20]
push eax
call fcn.004bff80
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x4c0edd
mov esi, eax
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x58]
push edi
add eax, 0x20
push edx
push eax
call fcn.004bfff0
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x4c0f07
mov esi, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 7
call fcn.0048ff50
test al, al
jne 0x4c0f31
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
push 7
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call fcn.0048ff50
test al, al
je 0x4c0fd1
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x44]
push edi
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.004bff80
add esp, 0xc
cmp eax, esi
jge 0x4c0f58
mov esi, eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.004bfff0
add esp, 0xc
cmp eax, esi
jge 0x4c0f7f
mov esi, eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
push edi
add eax, 0x30
push edx
push eax
call fcn.004bff80
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x4c0fa9
mov esi, eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x5c]
push edi
push ecx
lea eax, [edx + 0x30]
push eax
call fcn.004bfff0
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x4c0fd1
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x24]
fild dword [esp + 0x18]
mov eax, dword [edi + 4]
fstp qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
call fcn.0048e830
fstp qword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
call fcn.0048e830
fadd qword [esp + 0x18]
mov ecx, dword [edi + 4]
fdivr qword [esp + 0x28]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
fstp qword [esp + 0x18]
call fcn.0048e830
fdivr qword [esp + 0x30]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4c10a7
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x188]
mov eax, dword [ecx + 0x18c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.0048e830
fdivr qword [esp + 0x38]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4c10a7
mov al, byte [esp + 0x13]
test al, al
je 0x4c1072
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x4c10a0
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
fld qword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
fadd qword [0x520168]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x40], edx
fstp qword [ebx + 0x20]
mov byte [esp + 0x13], 1
jmp 0x4c10eb
mov al, byte [esp + 0x13]
test al, al
jne 0x4c10eb
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x4c10eb
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
fld qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
fadd qword [0x520168]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x40], ecx
fstp qword [ebx + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jns 0x4c0e2b
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4c1119
test ebx, ebx
je 0x4c1110
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004c0410
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
lea edi, [edx + ecx*4]
je 0x4c1144
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
nop
call fcn.0060910c
add esp, 0xc
mov ecx, dword [esi + 8]
dec ecx
mov dword [esi + 8], ecx
mov edx, dword [0x598df0]
mov esi, edx
cmp esi, edx
mov dword [esp + 0x18], esi
jl 0x4c1293
mov eax, dword [0x598dec]
inc esi
xor edi, edi
cmp esi, edi
jne 0x4c118f
cmp eax, edi
je 0x4c117e
push eax
call fcn.0050b204
add esp, 4
mov dword [0x598dec], edi
mov dword [0x598df4], edi
mov dword [0x598df0], edi
jmp 0x4c1293
cmp eax, edi
jne 0x4c11d0
lea edi, [esi*4]
push edi
call fcn.0050b264
mov edx, eax
mov ecx, edi
mov dword [0x598dec], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x598df4], esi
mov dword [0x598df0], esi
jmp 0x4c1293
mov ecx, dword [0x598df4]
cmp esi, ecx
jg 0x4c11f4
cmp esi, edx
jle 0x4c11e9
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [0x598df0], esi
jmp 0x4c1293
mov eax, dword [0x598df8]
cmp eax, edi
jne 0x4c1220
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4c1214
mov eax, 4
jmp 0x4c1220
cmp eax, 0x400
jle 0x4c1220
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x24], eax
jl 0x4c122e
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.0050b264
mov ecx, dword [0x598df0]
mov esi, dword [0x598dec]
mov edx, dword [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
mov edx, dword [0x598df0]
mov ecx, esi
mov dword [esp + 0x18], eax
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x598dec]
push eax
call fcn.0050b204
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [0x598dec], ecx
mov dword [0x598df0], esi
mov dword [0x598df4], edx
mov eax, dword [0x598dec]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword [eax + ecx*4], ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret