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

Disassembly:
adc eax, 0x478454
cmp eax, 1
jne 0x41ae28
lea ecx, [esp + 0x84]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0046cf19
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
add esp, 0xdc
ret
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x59f00c
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
mov byte [esp + 0xf4], 1
call dword [0x4780a8]
push eax
lea ecx, [esp + 0x14]
call fcn.0046cfe7
mov eax, dword [ebx + 0x5c]
cmp eax, esi
je 0x41b1c9
cmp dword [ebx + 0xec], esi
jne 0x41ae8e
mov ecx, eax
cmp ecx, esi
jne 0x41ae7e
xor ecx, ecx
jmp 0x41ae81
mov ecx, dword [ebx + 0x54]
push eax
push ecx
call fcn.004247c0
mov dword [ebx + 0xec], eax
mov eax, dword [ebx + 0xec]
mov dword [esp + 0x34], esi
cmp eax, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x41b1c9
lea ecx, [esp + 0x30]
lea edx, [esp + 0x88]
push ecx
push eax
push edx
call fcn.00424890
cmp eax, 1
jne 0x41b1c9
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x68]
push ebp
push eax
push ecx
call dword [0x47841c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
sub eax, edx
mov edx, dword [ebx + 0x60]
sub ecx, edi
xor edi, edi
cmp edx, 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
ja case.default.0x41af0a
jmp dword [edx*4 + 0x41b274]
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x44]
push esi
push edx
call fcn.00424af0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x59f00c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push esi
push esi
mov byte [esp + 0xf8], 2
call dword [0x4780a8]
push eax
lea ecx, [esp + 0x24]
call fcn.0046cfe7
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
push 4
and eax, edi
neg ecx
cmp eax, esi
jle 0x41b1b5
mov ebx, dword [0x478498]
mov ebp, dword [0x478494]
mov edx, dword [esp + 0x3c]
xor edi, edi
test ecx, ecx
jle 0x41b045
mov eax, dword [esp + 0x40]
lea ecx, [edx + edi]
add eax, esi
push eax
push ecx
push esi
lea ecx, [esp + 0x88]
push edi
push ecx
call ebx
lea edx, [esp + 0x5c]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], ecx
push eax
mov dword [esp + 0x5c], edx
call dword [0x478454]
test eax, eax
jne 0x41b031
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.00424af0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
add edi, edx
cmp edi, eax
jl 0x41afc5
mov ecx, eax
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x40]
cmp esi, eax
jl 0x41afbb
mov ebx, dword [esp + 0x30]
xor esi, esi
jmp 0x41b1b5
mov eax, dword [ebx + 0xec]
mov ebp, dword [eax + 4]
mov dword [esp + 0x20], ebp
mov edx, dword [eax + 8]
cmp ebp, ecx
mov dword [esp + 0x4c], edx
mov ebx, edx
jg 0x41b089
mov eax, ecx
mov dword [esp + 0x1c], ebp
sub eax, ebp
mov ecx, ebp
cdq
sub eax, edx
mov edx, ebx
mov edi, eax
sar edi, 1
mov eax, dword [esp + 0x10]
cmp edx, eax
jg 0x41b0a2
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov esi, eax
mov dword [esp + 0x10], edx
sar esi, 1
cmp ebp, ecx
jg 0x41b0ac
cmp edx, dword [esp + 0x10]
jle 0x41b10f
fild dword [esp + 0x20]
fild dword [esp + 0x1c]
fdiv st(1)
fild dword [esp + 0x4c]
fst qword [esp + 0x4c]
fild dword [esp + 0x10]
fdiv st(1)
fstp qword [esp + 0x20]
fstp st(0)
fcom qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x41b0db
fstp st(0)
fld qword [esp + 0x20]
fxch st(1)
fmul st(1)
call fcn.00455fc8
fld qword [esp + 0x4c]
fmul st(1)
mov ebp, eax
call fcn.00455fc8
mov ebx, eax
mov eax, dword [esp + 0x1c]
sub eax, ebp
cdq
fstp st(0)
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x10]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add esi, eax
push 0xcc0020
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
call fcn.00424af0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x59f00c
add ebx, esi
add ebp, edi
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xf8], 4
call dword [0x4780a8]
push eax
lea ecx, [esp + 0x24]
call fcn.0046cfe7
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
push 4
and eax, esi
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [0x4780ac]
mov dword [esp + 0x20], 0x59e218
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 5
call fcn.0046d03e
mov ebx, dword [esp + 0x30]
mov byte [esp + 0xe8], 1
xor esi, esi
jmp case.default.0x41af0a
push 0xcc0020
push eax
push ecx
push esi
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.00424af0
lea ecx, [esp + 0x14]
call fcn.0046d03e