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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54be22
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.00523d50
add esp, 0xc
cmp dword [esi + 0x394], 8
jb 0x403db9
mov ecx, dword [esi + 0x380]
jmp 0x403dbf
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 0x403dc6
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5b85b8
lea edi, [esi + 0x80]
call fcn.004042d0
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.00412d10
cmp eax, ebx
je 0x403e67
mov eax, dword [esp + 0x74]
mov edi, 8
cmp dword [esp + 0x88], edi
jae 0x403e46
lea eax, [esp + 0x74]
push eax
push 0x64
mov ecx, esi
call fcn.004065f0
cmp dword [esp + 0x88], edi
jb 0x4042a0
mov edx, dword [esp + 0x74]
push edx
jmp 0x404298
lea ecx, [esp + 0x20]
call fcn.00408d60
mov byte [esp + 0x2a8], 1
mov edi, dword [0x5b886c]
mov eax, dword [0x5b8870]
cmp edi, eax
jbe 0x403e91
call fcn.00524172
mov eax, dword [0x5b8870]
mov esi, dword [0x5b8860]
mov ebx, edi
lea esp, [esp]
mov edi, eax
cmp dword [0x5b886c], eax
jbe 0x403eaf
call fcn.00524172
test esi, esi
je 0x403ebb
cmp esi, dword [0x5b8860]
je 0x403ec0
call fcn.00524172
cmp ebx, edi
je 0x403fd1
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 0x403ef0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040c5e0
mov byte [esp + 0x2a8], 2
test esi, esi
jne 0x403fc6
call fcn.00524172
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x403f32
call fcn.00524172
push ebx
lea edx, [esp + 0x3c]
push 0x5892a0
push edx
call fcn.0040fb40
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b4], 3
call fcn.0040c3b0
mov edi, 8
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x50], edi
jb 0x403f7b
mov eax, dword [esp + 0x3c]
push eax
call fcn.00450c25
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408fd0
mov byte [esp + 0x2a8], 1
cmp dword [esp + 0x6c], edi
jb 0x403fa4
mov edx, dword [esp + 0x58]
push edx
call fcn.00450c25
add esp, 4
test esi, esi
jne 0x403fcd
call fcn.00524172
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x403fb9
call fcn.00524172
mov eax, dword [0x5b8870]
add ebx, 0x58
jmp 0x403ea0
mov eax, dword [esi]
jmp 0x403f28
mov eax, dword [esi]
jmp 0x403faf
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 0x40409f
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x378], bl
je 0x404074
mov ecx, dword [0x5b8870]
sub ecx, dword [0x5b886c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x404035
call fcn.00524172
cmp dword [esi + 0x394], 8
jb 0x404046
mov eax, dword [esi + 0x380]
jmp 0x40404c
lea eax, [esi + 0x380]
mov edx, dword [0x5b886c]
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.0041b8f0
add esp, 0x10
jmp 0x4040b5
cmp dword [edi + 0x18], 8
jb 0x40407f
mov edi, dword [edi + 4]
jmp 0x404082
add edi, 4
mov eax, edi
call fcn.004247d0
mov edi, eax
test edi, edi
je 0x4040b9
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, edi
mov dword [esp + 0x10], ebx
jmp 0x4040b9
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0041b5b0
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.0041b970
xor edx, edx
add esp, 0x10
cmp eax, edx
je 0x4041f2
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.0040c5e0
push 9
push 0x5893a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b0], 5
call fcn.0040c4c0
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x5b8660
lea ecx, [esp + 0x60]
call fcn.0040c3b0
push 7
push 0x5893b4
lea ecx, [esp + 0x5c]
call fcn.0040c4c0
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40414f
lea eax, [esp + 0x58]
push eax
push 0x65
mov ecx, esi
call fcn.004065f0
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x404171
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00450c25
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 0x404198
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4041c2
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00410b10
mov eax, dword [esp + 0x3c]
push eax
call fcn.00450c25
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.00450c25
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x4042a0
mov edx, dword [esp + 0x74]
push edx
jmp 0x404298
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 [0x590750]
call fcn.00523f86
xor esi, esi
mov dword [edi], eax
mov dword [edi + 4], edx
mov byte [esp + 0x2a8], 1
cmp ebx, esi
je 0x404246
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x404270
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.00410b10
mov edx, dword [esp + 0x3c]
push edx
call fcn.00450c25
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.00450c25
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x4042a0
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00450c25
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.00523c2c
mov esp, ebp
pop ebp
ret