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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54b0c2
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x5af640]
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.00523080
add esp, 0xc
cmp dword [esi + 0x3e4], 8
jb 0x403fc9
mov ecx, dword [esi + 0x3d0]
jmp 0x403fcf
lea ecx, [esi + 0x3d0]
lea edx, [esp + 0x8c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x403fd6
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5b75b8
lea edi, [esi + 0x80]
call fcn.004044e0
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 + 0x3c8]
push ecx
mov ecx, dword [esi + 0x37c]
lea edx, [esp + 0x74]
call fcn.004133a0
cmp eax, ebx
je 0x404077
mov eax, dword [esp + 0x74]
mov edi, 8
cmp dword [esp + 0x88], edi
jae 0x404056
lea eax, [esp + 0x74]
push eax
push 0x64
mov ecx, esi
call fcn.00406c40
cmp dword [esp + 0x88], edi
jb 0x4044b5
mov edx, dword [esp + 0x74]
push edx
jmp 0x4044ad
lea ecx, [esp + 0x20]
call fcn.004093d0
mov byte [esp + 0x2a8], 1
mov edi, dword [0x5b78c0]
mov eax, dword [0x5b78c4]
cmp edi, eax
jbe 0x4040a1
call fcn.005234a2
mov eax, dword [0x5b78c4]
mov esi, dword [0x5b78b4]
mov ebx, edi
lea esp, [esp]
mov edi, eax
cmp dword [0x5b78c0], eax
jbe 0x4040bf
call fcn.005234a2
test esi, esi
je 0x4040cb
cmp esi, dword [0x5b78b4]
je 0x4040d0
call fcn.005234a2
cmp ebx, edi
je 0x4041e1
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 0x404100
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040cc30
mov byte [esp + 0x2a8], 2
test esi, esi
jne 0x4041d6
call fcn.005234a2
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x404142
call fcn.005234a2
push ebx
lea edx, [esp + 0x3c]
push 0x5883bc
push edx
call fcn.00410150
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b4], 3
call fcn.0040ca00
mov edi, 8
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x50], edi
jb 0x40418b
mov eax, dword [esp + 0x3c]
push eax
call fcn.004508d0
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409640
mov byte [esp + 0x2a8], 1
cmp dword [esp + 0x6c], edi
jb 0x4041b4
mov edx, dword [esp + 0x58]
push edx
call fcn.004508d0
add esp, 4
test esi, esi
jne 0x4041dd
call fcn.005234a2
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4041c9
call fcn.005234a2
mov eax, dword [0x5b78c4]
add ebx, 0x58
jmp 0x4040b0
mov eax, dword [esi]
jmp 0x404138
mov eax, dword [esi]
jmp 0x4041bf
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 0x4042af
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x3c8], bl
je 0x404284
mov ecx, dword [0x5b78c4]
sub ecx, dword [0x5b78c0]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x404245
call fcn.005234a2
cmp dword [esi + 0x3e4], 8
jb 0x404256
mov eax, dword [esi + 0x3d0]
jmp 0x40425c
lea eax, [esi + 0x3d0]
mov edx, dword [0x5b78c0]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esi + 0x3c4]
push 0
push ecx
mov ecx, dword [esi + 0x3c0]
push edx
push ecx
lea ebx, [esp + 0x20]
call fcn.0041b710
add esp, 0x10
jmp 0x4042c5
cmp dword [edi + 0x18], 8
jb 0x40428f
mov edi, dword [edi + 4]
jmp 0x404292
add edi, 4
mov eax, edi
call fcn.004244e0
mov edi, eax
test edi, edi
je 0x4042c9
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, edi
mov dword [esp + 0x10], ebx
jmp 0x4042c9
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0041b3d0
mov esi, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0x39c]
lea edi, [esi + 0x78]
push edi
lea eax, [esi + 0x3a0]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x5882f0
push edx
call fcn.0041b790
xor edx, edx
add esp, 0x14
cmp eax, edx
je 0x404407
push 6
xor eax, eax
push 0x5884b0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edx
mov word [esp + 0x60], ax
call fcn.0040cc30
push 9
push 0x5884c0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b0], 5
call fcn.0040cb10
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x5b7660
lea ecx, [esp + 0x60]
call fcn.0040ca00
push 7
push 0x5884d4
lea ecx, [esp + 0x5c]
call fcn.0040cb10
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x404364
lea eax, [esp + 0x58]
push eax
push 0x65
mov ecx, esi
call fcn.00406c40
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x404386
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004508d0
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 0x4043ad
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4043d7
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00411160
mov eax, dword [esp + 0x3c]
push eax
call fcn.004508d0
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.004508d0
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x4044b5
mov edx, dword [esp + 0x74]
push edx
jmp 0x4044ad
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 [0x58f850]
call fcn.005232b6
xor esi, esi
mov dword [edi], eax
mov dword [edi + 4], edx
mov byte [esp + 0x2a8], 1
cmp ebx, esi
je 0x40445b
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x404485
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.00411160
mov edx, dword [esp + 0x3c]
push edx
call fcn.004508d0
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.004508d0
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x4044b5
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004508d0
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.00522f5c
mov esp, ebp
pop ebp
ret