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

Disassembly:
sub esp, 0x124
mov eax, dword [0x4a1824]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push esi
mov esi, ecx
cmp byte [esi + 0x90], 0
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
je 0x41c560
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x41c560
mov eax, dword [esi + 0x64]
cmp eax, dword [esi + 0x5c]
jge 0x41c560
lea edx, [eax + eax*4]
lea edi, [ecx + edx*4]
mov ecx, edi
call fcn.0041eaf0
mov ecx, dword [esp + 0x13c]
cmp ecx, eax
jge 0x41c560
push ecx
mov ecx, edi
call fcn.0041eb00
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x2c], ebp
call fcn.0041ed20
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x41c560
fld dword [esi + 0x94]
mov byte [esp + 0x13], 1
fmul dword [esp + 0x148]
fstp dword [esp + 0x148]
fldz
fld dword [esp + 0x148]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x41c558
fld1
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41c37f
mov ecx, ebx
call fcn.004294f0
push 1
mov ecx, ebx
call fcn.00425240
xor ebx, ebx
test edi, edi
mov dword [esp + 0x1c], ebx
jle 0x41c4f6
lea ecx, [ecx]
push ebx
mov ecx, ebp
call fcn.0041ed90
mov edi, eax
movzx eax, word [edi]
test ax, ax
je 0x41c4e0
movsx eax, ax
lea ecx, [eax - 1]
cmp ecx, dword [esi + 0x54]
jge 0x41c4e0
mov edx, dword [esi + 0x58]
cmp dword [edx + eax*4 - 4], 0
je 0x41c4e0
mov eax, dword [esi + 0x84]
test eax, eax
mov ebp, dword [esi + 0x4c]
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jle 0x41c464
mov ebx, dword [esi + 0x80]
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
fmul qword [0x485ee8]
fidiv dword [esp + 0x14]
call fcn.004534b0
test ebx, ebx
jne 0x41c407
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41c407
mov byte [eax], 1
mov ebx, dword [esi + 0x4c]
mov eax, dword [esi + 0x78]
sub eax, ebx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul st(1)
call fcn.00453610
mov ecx, dword [esi + 0x7c]
mov ebp, eax
mov eax, dword [esi + 0x50]
sub ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
add ebp, ebx
fmulp st(1)
call fcn.00453610
mov edx, dword [esi + 0x80]
mov ebx, eax
add ebx, dword [esi + 0x50]
lea eax, [esp + 0x30]
push ebx
push ebp
push edx
push str.XY:_step:_d___d__d_r_n
push eax
call fcn.00452de5
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
call dword [0x481084]
movsx edx, word [edi]
fld dword [edi + 8]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + edx*4 - 4]
movsx eax, word [edi + 6]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
add eax, ebx
add eax, dword [esp + 0x144]
push 0
push ecx
fstp dword [esp]
push eax
movsx eax, word [edi + 4]
add eax, ebp
add eax, dword [esp + 0x14c]
push eax
movsx eax, word [edi + 2]
push eax
mov eax, dword [esp + 0x2c]
push eax
call edx
test al, al
je 0x41c4b4
cmp byte [esp + 0x13], 0
mov byte [esp + 0x13], 1
jne 0x41c4b9
mov byte [esp + 0x13], 0
movsx eax, word [edi]
mov ecx, dword [esi + 0x64]
push eax
push ecx
lea edx, [esp + 0xb8]
push str._d:_02d
push edx
call fcn.00452de5
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
add esp, 0x10
jmp 0x41c4e5
mov byte [esp + 0x13], 0
add ebx, 1
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
jl 0x41c390
fld1
fcomp dword [esp + 0x148]
fnstsw ax
test ah, 0x44
jnp 0x41c55a
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00428a60
mov eax, dword [esi + 0x98]
push 0
push eax
mov ecx, edi
call fcn.00427340
push 1
mov ecx, edi
call fcn.00425240
mov ecx, edi
call fcn.00429790
fld dword [esp + 0x148]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x98]
fstp dword [esp]
push ecx
push 0
push 0
mov ecx, edi
call fcn.004273a0
mov al, byte [esp + 0x13]
jmp 0x41c562
fstp st(0)
mov al, byte [esp + 0x13]
jmp 0x41c562
xor al, al
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00452be3
add esp, 0x124
ret 0x18