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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41b823
sub esp, 0x70
mov eax, dword [esp + 0x74]
test byte [eax], al
lea ecx, [eax + 0x40]
mov dword [esp + 0x6c], ecx
mov dword [esp], ecx
call fcn.00402510
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x78]
cmp ecx, eax
setb dl
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x7c]
cmp ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setl bl
xchg edi, ebx
and esi, edx
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
jne 0x41b672
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebx
mov edx, ecx
sub ecx, eax
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x4c]
mov dword [esp + 0x54], ebp
mov eax, ecx
mov edi, edx
mul ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], eax
nop
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
call fcn.004024d0
nop
mov ecx, dword [esp + 0x74]
lea edx, [ecx + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp], edx
call fcn.00402510
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
sub ecx, edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x34]
sbb ecx, edx
mov edx, dword [esp + 4]
mov dword [esp + 0x1c], edx
test edx, edx
xchg ebp, ebx
setne bl
xchg ebp, ebx
mov esi, dword [esp + 8]
mov dword [esp + 0x24], esi
test esi, esi
xchg edi, ebx
setne bl
xchg edi, ebx
mov ebx, dword [esp + 0x54]
imul ecx, ebx
mov esi, dword [esp + 0x50]
add ecx, esi
sar ebx, 0x1f
mov esi, dword [esp + 0x58]
imul ebx, esi
add ecx, ebx
mov dword [esp + 0x58], ecx
or ebp, edi
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x41b5ad
xor eax, eax
sub eax, edx
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov ecx, 0
mov ebx, dword [esp + 0x24]
sbb ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.00402520
nop
mov eax, dword [esp + 0x74]
lea ecx, [eax + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp], ecx
call fcn.00402510
mov eax, dword [esp + 4]
test eax, eax
setne cl
mov edx, dword [esp + 8]
test edx, edx
setne bl
or ecx, ebx
mov ebx, dword [esp + 8]
test cl, cl
je 0x41b60c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
xor ecx, ecx
sub ecx, eax
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ebx, 0
sbb ebx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00402520
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x41b668
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [ebp + 0x18]
nop
inc dword [esi + 0x7c]
mov esi, dword [0x1aa9600]
mov dword [esp + 0x68], esi
mov edi, dword [0x1aa9604]
mov dword [esp + 0x4c], edi
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x64], ebp
xor edx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
xor edx, edx
jmp 0x41b733
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x41b676
add esp, 0x70
ret
movzx esi, byte [ecx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x41b6dc
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00465ee0
movsd xmm0, qword [0x12471b4]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00465e40
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0x40]
add ebp, eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
adc edx, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov edi, esi
sub esi, eax
mov dword [esp + 0x30], esi
sub esi, ebp
mov dword [esp], ecx
sub edi, eax
mov eax, dword [esp + 0x58]
sbb eax, ebx
mov ecx, dword [esp + 0x30]
sub ecx, ebp
sbb eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
call fcn.0041b830
add esp, 0x70
ret
mov edx, dword [esp + 0x48]
inc edx
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebp
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x64]
cmp edx, edi
jge 0x41b7d2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], edx
mov eax, dword [esi + edx*4]
test byte [eax], al
add eax, 0x948
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0041bc70
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x41b791
test al, al
jne 0x41b7b9
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x41b716
cmp al, 2
je 0x41b79b
cmp al, 3
jne 0x41b7b4
mov ebp, dword [esp + 0x50]
add ebp, ecx
mov ecx, dword [esp + 0x54]
adc ecx, edx
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x41b716
cmp al, 4
jne 0x41b80c
mov eax, dword [esp + 0x38]
add eax, ecx
mov ebx, dword [esp + 0x3c]
adc ebx, edx
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
jmp 0x41b716
nop
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov esi, dword [ebp + 0x7c]
lea edi, [esi - 1]
mov dword [ebp + 0x7c], edi
cmp esi, 1
jne 0x41b7ff
movzx ebp, byte [edx + 0x65]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x41b7ff
mov dword [edx + 8], 0xfffffade
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
jmp 0x41b676
lea eax, [0x10b3efa]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.0043bac0
nop
call fcn.0046b600
jmp fcn.0041b470