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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4b900c]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x8000
push 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
call dword [0x498084]
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x413d4f
mov eax, 0x80090304
jmp 0x41407a
mov eax, dword [ebp + 0xc]
mov edi, 0x90312
xor esi, esi
cmp edi, 0x90312
je 0x413d75
cmp edi, 0x80090318
je 0x413d75
cmp edi, 0x90320
jne 0x41405e
test esi, esi
je 0x413d81
cmp edi, 0x80090318
jne 0x413dbd
test eax, eax
je 0x413db6
push 0
mov eax, 0x8000
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push dword [esp + 0x24]
call dword [0x49835c]
cmp eax, 0xffffffff
je 0x413f56
test eax, eax
je 0x413f56
mov ecx, dword [esp + 0x10]
add esi, eax
jmp 0x413dbd
mov dword [ebp + 0xc], 1
lea eax, [esp + 0x84]
and dword [esp + 0x98], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x50]
push eax
and dword [esp + 0x94], 0
lea eax, [esp + 0x40]
push eax
and dword [esp + 0x9c], 0
lea eax, [esp + 0x24]
and dword [esp + 0x30], 0
and dword [esp + 0x88], 0
and dword [esp + 0x80], 0
and dword [esp + 0x24], 0
push eax
push 0
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0xa0], ecx
push eax
mov eax, dword [0x4c01fc]
push 0x10
push 0
push 0xc11c
push 0
push dword [esp + 0x3c]
mov dword [esp + 0xb0], esi
push dword [esp + 0x60]
mov dword [esp + 0xb8], 2
mov dword [esp + 0x5c], 2
mov dword [esp + 0xac], 2
mov dword [esp + 0x50], 1
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x413e85
cmp edi, 0x90312
je 0x413e85
test edi, edi
jns 0x413ed5
test dword [esp + 0x3c], 0x4000
je 0x413ed5
cmp dword [esp + 0x78], 0
je 0x413ed5
cmp dword [esp + 0x80], 0
je 0x413ed5
push 0
push dword [esp + 0x7c]
push dword [esp + 0x88]
push dword [esp + 0x24]
call dword [0x498340]
cmp eax, 0xffffffff
je 0x413f60
test eax, eax
je 0x413f60
mov eax, dword [0x4c01fc]
push dword [esp + 0x80]
call dword [eax + 0x40]
and dword [esp + 0x80], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
cmp edi, 0x80090318
je 0x413d59
test edi, edi
je 0x413f80
js 0x414062
cmp edi, 0x90320
jne 0x413f19
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
call fcn.0041456e
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [ebp + 0xc], eax
jmp 0x413d52
cmp dword [esp + 0x94], 5
jne 0x413f4c
push dword [esp + 0x90]
sub esi, dword [esp + 0x94]
mov eax, ecx
add esi, eax
push esi
push eax
call fcn.00478a50
mov esi, dword [esp + 0x9c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
jmp 0x413f4e
xor esi, esi
mov eax, dword [ebp + 0xc]
jmp 0x413d59
mov edi, 0x80090304
jmp 0x414062
mov eax, dword [0x4c01fc]
push dword [esp + 0x80]
call dword [eax + 0x40]
mov eax, dword [0x4c01fc]
push dword [esp + 0x14]
call dword [eax + 0x24]
jmp 0x413d45
cmp dword [esp + 0x94], 5
jne 0x413fd2
push dword [esp + 0x90]
push 0
call dword [0x498084]
mov dword [ebx + 8], eax
test eax, eax
je 0x413d45
push dword [esp + 0x90]
sub esi, dword [esp + 0x94]
add esi, dword [esp + 0x14]
push esi
push eax
call fcn.00478a50
mov eax, dword [esp + 0x9c]
add esp, 0xc
mov dword [ebx], eax
mov dword [ebx + 4], 2
jmp 0x413fdd
and dword [ebx + 8], 0
and dword [ebx], 0
and dword [ebx + 4], 0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x4c01fc]
push 2
push ebx
call dword [eax + 0x2c]
movd xmm0, dword [esp + 0x64]
cvtdq2pd xmm0, xmm0
push 0x20
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.0047eab4
add esp, 0xc
lea eax, [esp + 0x40]
fstp st(0)
push eax
mov eax, dword [0x4c01fc]
push 2
push ebx
call dword [eax + 0x2c]
mov esi, dword [0x498090]
mov edi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x38]
push eax
call esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x38]
push eax
call esi
test edi, edi
jns 0x41406e
mov eax, dword [0x4c01fc]
push dword [esp + 0x14]
call dword [eax + 0x24]
push dword [esp + 0x10]
call dword [0x498094]
mov eax, edi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00476874
mov esp, ebp
pop ebp
ret