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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54ba72
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x5b0630]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov esi, ecx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x92]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x98], ax
call fcn.00523d70
add esp, 0xc
cmp dword [esi + 0x394], 8
jb 0x403e89
mov ecx, dword [esi + 0x380]
jmp 0x403e8f
lea ecx, [esi + 0x380]
lea edx, [esp + 0x8c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x403e96
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5b85b0
lea edi, [esi + 0x80]
call fcn.004043a0
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
mov dword [esp + 0x2a8], ebx
movzx ecx, byte [esi + 0x378]
push ecx
mov ecx, dword [esi + 0x328]
lea edx, [esp + 0x74]
call fcn.00412d20
cmp eax, ebx
je 0x403f37
mov eax, dword [esp + 0x74]
mov edi, 8
cmp dword [esp + 0x88], edi
jae 0x403f16
lea eax, [esp + 0x74]
push eax
push 0x64
mov ecx, esi
call fcn.004066c0
cmp dword [esp + 0x88], edi
jb 0x404370
mov edx, dword [esp + 0x74]
push edx
jmp 0x404368
lea ecx, [esp + 0x20]
call fcn.00408e50
mov byte [esp + 0x2a8], 1
mov edi, dword [0x5b8864]
mov eax, dword [0x5b8868]
cmp edi, eax
jbe 0x403f61
call fcn.00524192
mov eax, dword [0x5b8868]
mov esi, dword [0x5b8858]
mov ebx, edi
lea esp, [esp]
mov edi, eax
cmp dword [0x5b8864], eax
jbe 0x403f7f
call fcn.00524192
test esi, esi
je 0x403f8b
cmp esi, dword [0x5b8858]
je 0x403f90
call fcn.00524192
cmp ebx, edi
je 0x4040a1
xor eax, eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x8c]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403fc0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040c670
mov byte [esp + 0x2a8], 2
test esi, esi
jne 0x404096
call fcn.00524192
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x404002
call fcn.00524192
push ebx
lea edx, [esp + 0x3c]
push 0x5892a0
push edx
call fcn.0040fb60
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b4], 3
call fcn.0040c440
mov edi, 8
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x50], edi
jb 0x40404b
mov eax, dword [esp + 0x3c]
push eax
call fcn.00450c1b
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.004090c0
mov byte [esp + 0x2a8], 1
cmp dword [esp + 0x6c], edi
jb 0x404074
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c1b
add esp, 4
test esi, esi
jne 0x40409d
call fcn.00524192
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x404089
call fcn.00524192
mov eax, dword [0x5b8868]
add ebx, 0x58
jmp 0x403f70
mov eax, dword [esi]
jmp 0x403ff8
mov eax, dword [esi]
jmp 0x40407f
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x2a8], 4
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x40416f
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x378], bl
je 0x404144
mov ecx, dword [0x5b8868]
sub ecx, dword [0x5b8864]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x404105
call fcn.00524192
cmp dword [esi + 0x394], 8
jb 0x404116
mov eax, dword [esi + 0x380]
jmp 0x40411c
lea eax, [esi + 0x380]
mov edx, dword [0x5b8864]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esi + 0x374]
push 0
push ecx
mov ecx, dword [esi + 0x370]
push edx
push ecx
lea ebx, [esp + 0x20]
call fcn.0041ba00
add esp, 0x10
jmp 0x404185
cmp dword [edi + 0x18], 8
jb 0x40414f
mov edi, dword [edi + 4]
jmp 0x404152
add edi, 4
mov eax, edi
call fcn.00424950
mov edi, eax
test edi, edi
je 0x404189
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, edi
mov dword [esp + 0x10], ebx
jmp 0x404189
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0041b6b0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0x348]
lea edi, [esi + 0x78]
push edi
lea eax, [esi + 0x34c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0041ba80
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x4042c2
push 6
xor eax, eax
push 0x589390
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edx
mov word [esp + 0x60], ax
call fcn.0040c670
push 9
push 0x5893a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b0], 5
call fcn.0040c550
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x5b8658
lea ecx, [esp + 0x60]
call fcn.0040c440
push 7
push 0x5893b4
lea ecx, [esp + 0x5c]
call fcn.0040c550
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40421f
lea eax, [esp + 0x58]
push eax
push 0x65
mov ecx, esi
call fcn.004066c0
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x404241
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00450c1b
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], dx
mov byte [esp + 0x2a8], 1
cmp ebx, edi
je 0x404268
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x404292
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00410b40
mov eax, dword [esp + 0x3c]
push eax
call fcn.00450c1b
add esp, 0x14
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00450c1b
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x404370
mov edx, dword [esp + 0x74]
push edx
jmp 0x404368
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x14]
fchs
faddp st(1)
fmul qword [0x590760]
call fcn.00523fa6
xor esi, esi
mov dword [edi], eax
mov dword [edi + 4], edx
mov byte [esp + 0x2a8], 1
cmp ebx, esi
je 0x404316
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x404340
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.00410b40
mov edx, dword [esp + 0x3c]
push edx
call fcn.00450c1b
add esp, 0x14
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00450c1b
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x404370
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00450c1b
add esp, 4
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.00523c4c
mov esp, ebp
pop ebp
ret