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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41cbf1
sub esp, 0x7c
mov eax, dword [esp + 0x80]
test byte [eax], al
lea ecx, [eax + 0x40]
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
call fcn.00402d70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x88]
cmp edx, ecx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov esi, dword [esp + 0x84]
cmp esi, eax
xchg edi, ebx
setb bl
xchg edi, ebx
and ebx, edi
or ebx, ebp
test bl, bl
jne 0x41ca12
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x68], ecx
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
lea ebp, [eax + 0x28]
mov dword [esp + 0x74], ebp
nop
mov edi, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.00402d30
nop
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00402d70
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
sub edx, ebx
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
sbb ebx, esi
mov esi, eax
mov eax, edx
mov edi, dword [esp + 0x68]
mul edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
imul eax, ebp
imul ebx, edi
add edx, ebx
add eax, edx
mov dword [esp + 0x60], eax
test esi, esi
setne dl
test ecx, ecx
setne bl
or edx, ebx
test dl, dl
je 0x41c94d
mov eax, dword [esp + 0x74]
mov dword [esp], eax
xor eax, eax
sub eax, esi
mov dword [esp + 4], eax
mov eax, 0
sbb eax, ecx
mov dword [esp + 8], eax
call fcn.00402d90
mov eax, dword [esp + 0x80]
lea ecx, [eax + 0x38]
mov dword [esp + 0x78], ecx
nop
mov dword [esp], ecx
call fcn.00402d70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
setne dl
test eax, eax
setne bl
or ebx, edx
test bl, bl
je 0x41c9ab
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x78]
mov dword [esp], edx
xor edx, edx
sub edx, eax
mov dword [esp + 4], edx
mov edx, 0
sbb edx, ecx
mov dword [esp + 8], edx
call fcn.00402d90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx + 0x50]
test bl, bl
jne 0x41ca08
mov ebx, dword [0x82b814]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
nop
inc dword [ebp + 0x7c]
mov ebp, dword [0x7ec800]
mov dword [esp + 0x70], ebp
mov esi, dword [0x7ec804]
mov dword [esp + 0x5c], esi
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0x6c], ebx
xor edi, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
xor edi, edi
jmp 0x41cad1
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
jmp 0x41ca16
add esp, 0x7c
ret
movzx esi, byte [edx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x41ca7f
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.00463670
movsd xmm0, qword [0x6b8e08]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.004635d0
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add ebp, eax
mov eax, dword [esp + 0x48]
adc ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
sub edx, eax
mov eax, dword [esp + 0x60]
sbb eax, ecx
sub edx, ebp
mov dword [esp + 4], edx
sbb eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0041cc00
add esp, 0x7c
ret
mov ebp, dword [esp + 0x54]
lea edi, [ebp + 1]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x58], ecx
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x6c]
cmp edi, esi
jge 0x41cba4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edi*4]
test byte [eax], al
add eax, 0x968
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
call fcn.0041cff0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x41cb39
test al, al
jne 0x41cb61
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x41caab
cmp al, 2
je 0x41cb43
cmp al, 3
jne 0x41cb5c
mov ebx, dword [esp + 0x58]
add ecx, ebx
mov ebx, dword [esp + 0x68]
adc edx, ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x41caab
cmp al, 4
jne 0x41cbda
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
lea eax, [0x7ee1e0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402d90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
adc ecx, edx
mov edx, dword [esp + 0x68]
mov ebx, eax
mov eax, ecx
mov ecx, dword [esp + 0x58]
jmp 0x41caab
mov ebp, dword [ebx + 0x7c]
lea esi, [ebp - 1]
nop
mov edi, dword [0x82b814]
mov edi, dword fs:[edi]
mov edi, dword [edi]
mov dword [ebx + 0x7c], esi
cmp ebp, 1
jne 0x41cbcd
movzx ebx, byte [edi + 0x65]
test bl, bl
je 0x41cbcd
mov dword [edi + 8], 0xfffffade
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x58]
jmp 0x41ca16
lea eax, [0x669ddd]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00439ac0
nop
call fcn.0046a530
jmp fcn.0041c820