Function at 0x403d83
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x10], 0xe2e4d526
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x10]
cmp eax, 0x2e68f7fc
jle 0x403e0c
cmp eax, 0x5352a23b
jle 0x403e87
cmp eax, 0x6e6eb301
jg 0x403f61
cmp eax, 0x64c4a4b1
jg 0x4040e8
cmp eax, 0x5352a23c
je 0x4043da
cmp eax, 0x59e72280
je 0x404343
cmp eax, 0x617e93dd
jne 0x403d99
imul ecx, dword [ebp - 0x14], 0xdc
add ecx, 0xffffaa10
mov dword [ebp - 0x14], ecx
mov eax, 0xe5be4b7c
cmp ecx, 0xb3
jae 0x4046c1
mov eax, 0x7ed4275a
jmp 0x4046c1
cmp eax, 0xe5be4b7b
jg 0x403ef9
cmp eax, 0xb6220656
jg 0x403fc4
cmp eax, 0x96e4aa90
jg 0x40419b
cmp eax, 0x89315935
jle 0x4042d6
cmp eax, 0x89315936
je 0x404311
cmp eax, 0x8b5bda0c
jne 0x403d99
mov ebx, dword [ebp - 0x14]
shl ebx, 9
and ebx, 0xffc00000
or ebx, 0x2780
mov dword [ebp - 0x14], ebx
push ebx
call fcn.00402bb5
add esp, 4
mov eax, 0x89315936
cmp ebx, 0xeb
jge 0x4046c1
mov eax, 0x814c574a
jmp 0x4046c1
cmp eax, 0x3e52ca14
jle 0x403fff
cmp eax, 0x4184e18f
jg 0x40415c
cmp eax, 0x3e52ca15
je 0x4044eb
cmp eax, 0x3f980cc8
je 0x404480
cmp eax, 0x3fbd283e
jne 0x403d99
mov eax, dword [ebp - 0x18]
shr eax, 2
imul ecx, eax, 0x9100
and eax, 0xfffffff
imul eax, eax
imul edx, eax, 0x5e5b
add ecx, 0xffffff48
dec edx
mov dword [ebp - 0x18], ecx
mov ecx, 0x2e68f7fd
cmp eax, edx
je 0x404435
mov ecx, 0xb6220657
jmp 0x404435
cmp eax, 0x123d345d
jle 0x404063
cmp eax, 0x20357a4b
jg 0x404201
cmp eax, 0x123d345e
je 0x4046c9
cmp eax, 0x1259ed3f
je 0x404647
cmp eax, 0x1fe8acfd
jne 0x403d99
mov eax, dword [ebp - 0x14]
mov ecx, 0x8f
add eax, ecx
shr eax, 3
imul ecx, eax, 0x8b70
mov eax, 0xd3d47d4d
add ecx, 0x142730
mov dword [ebp - 0x14], ecx
je 0x4046c1
mov eax, 0x4184e190
jmp 0x4046c1
cmp eax, 0x7ed42759
jg 0x404115
cmp eax, 0x6e6eb302
je 0x4043e6
cmp eax, 0x7759dc37
je 0x404383
cmp eax, 0x7dbbe635
jne 0x403d99
mov eax, dword [ebp - 0x28]
mov word [eax + 2], 0
mov eax, dword [ebp - 0x28]
movzx ecx, word [0x4710f4]
mov word [eax], cx
xor eax, eax
inc eax
push eax
push 0x4710f6
push eax
push dword [ebp - 0x28]
call fcn.00408bc0
add esp, 0x10
mov dword [ebp - 0x10], 0x7ed4275a
jmp 0x403d99
cmp eax, 0xc6986cd0
jg 0x4041ce
cmp eax, 0xb6220657
je 0x404592
cmp eax, 0xb9250cea
je 0x40453c
cmp eax, 0xbb6bd3bb
jne 0x403d99
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0x697bd60a
jmp 0x403d99
cmp eax, 0x3c221f89
jg 0x40423c
cmp eax, 0x2e68f7fd
je 0x40446c
cmp eax, 0x2f357b4d
je 0x404451
cmp eax, 0x30444667
jne 0x403d99
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push dword [ebp + 0x10]
call fcn.004260e5
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.0045d3c9
add esp, 4
push dword [ebp - 0x20]
call fcn.0045d3c9
add esp, 4
mov dword [ebp - 0x10], 0x2f357b4d
jmp 0x403d99
cmp eax, 0xf53cb2ed
jle 0x4042a0
cmp eax, 0xf53cb2ee
je 0x40463b
cmp eax, 0xf9f37ae3
je 0x40461d
cmp eax, 0xfa4794d0
jne 0x403d99
imul eax, dword [ebp - 0x14], 0xab
add eax, 0x3fffff99
shr eax, 2
imul ebx, eax, 0xc70
and ebx, 0xffffff00
mov dword [ebp - 0x14], ebx
push ebx
push 0x1a21
call fcn.0040182f
add esp, 8
push 0
push 0x22c3
push 0x11cc
push ebx
call fcn.00402404
add esp, 0x10
mov eax, 0xb2ef7c36
cmp ebx, 0x32
jge 0x4046c1
mov eax, 0x3e52ca15
jmp 0x4046c1
cmp eax, 0x64c4a4b2
je 0x404416
cmp eax, 0x662f916b
je 0x40439a
cmp eax, 0x697bd60a
jne 0x403d99
mov dword [ebp - 0x10], 0x3c4214c6
jmp 0x403d99
cmp eax, 0x7ed4275a
je 0x40443d
cmp eax, 0x7ef46fc5
je 0x4043c5
cmp eax, 0x7fbe84b8
jne 0x403d99
mov eax, dword [ebp - 0x14]
shr eax, 2
and eax, 0xffffffe0
add eax, 0xfffff620
shr eax, 9
imul eax, eax, 0xe8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x64c4a4b2
jmp 0x403d99
cmp eax, 0x4184e190
je 0x40450c
cmp eax, 0x446ff40c
je 0x4044af
cmp eax, 0x4afd9eea
jne 0x403d99
mov eax, dword [ebp - 0x18]
shr eax, 3
imul eax, eax, 0x4440
add eax, 0x55
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xf53cb2ee
jmp 0x403d99
cmp eax, 0x96e4aa91
je 0x4045bd
cmp eax, 0xb2ef7c36
je 0x404550
cmp eax, 0xb5238c98
jne 0x403d99
push eax
mov eax, esp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x2cfbd5ee
jmp 0x403d99
cmp eax, 0xc6986cd1
je 0x4045de
cmp eax, 0xd3d47d4d
je 0x404565
cmp eax, 0xe2e4d526
jne 0x403d99
push eax
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0x5352a23c
jmp 0x403d99
cmp eax, 0x20357a4c
je 0x404707
cmp eax, 0x2bdaf2d1
je 0x40469d
cmp eax, 0x2cfbd5ee
jne 0x403d99
mov eax, dword [ebp - 0x18]
shl eax, 0xd
add eax, 0x153ac5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x7ef46fc5
jmp 0x403d99
cmp eax, 0x3c221f8a
je 0x40451e
cmp eax, 0x3dfc6e2f
jne 0x40473e
mov eax, dword [ebp - 0x14]
mov ecx, 0xffff80
and eax, ecx
lea esi, [eax + eax]
add esi, 0xffffc100
mov eax, esi
shr eax, 8
mov dword [ebp - 0x14], eax
push 0x31f3
push eax
push 0x35da
push 0x3a0
call fcn.00408960
add esp, 0x10
mov eax, 0x617e93dd
cmp esi, 0x4901
jae 0x4046c1
mov eax, 0xfa4794d0
jmp 0x4046c1
cmp eax, 0xe5be4b7c
je 0x4045f4
cmp eax, 0xed6ce602
jne 0x403d99
mov eax, dword [ebp - 0x18]
shl eax, 0x13
add eax, 0x7600000
shr eax, 6
or eax, 0x35
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xb5238c98
jmp 0x403d99
cmp eax, 0x814c574a
jne 0x40474b
mov eax, dword [ebp - 0x14]
lea ecx, [eax + eax]
add ecx, 0xffffff32
and ecx, 0xfffffe00
add ecx, 0xffffffe5
mov dword [ebp - 0x14], ecx
mov eax, 0xbb84be91
cmp ecx, 0x35
jge 0x4046c1
mov eax, 0x1259ed3f
jmp 0x4046c1
mov ecx, dword [ebp - 0x14]
shr ecx, 1
and ecx, 0x1fffff
add ecx, 0xed
shr ecx, 0xd
mov dword [ebp - 0x14], ecx
mov eax, 0x64c4a4b2
cmp ecx, 0x89
je 0x4046c1
mov eax, 0x7fbe84b8
jmp 0x4046c1
mov ebx, dword [ebp - 0x14]
shl ebx, 0xd
add ebx, 0xfffbc0e0
mov eax, ebx
shr eax, 0xf
add eax, 0x12
mov dword [ebp - 0x14], eax
push 0x2384
push eax
call fcn.004017d4
add esp, 8
mov eax, 0x3e52ca15
cmp ebx, 0x578000
jb 0x4046c1
mov eax, 0x7759dc37
jmp 0x4046c1
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x10], 0x4184e190
jmp 0x403d99
imul ecx, dword [ebp - 0x14], 0x4080
shr ecx, 0x14
add ecx, 0xffffff6d
mov dword [ebp - 0x14], ecx
mov eax, 0x822d09c5
cmp ecx, 0x33
jae 0x4046c1
mov eax, 0xe5be4b7c
jmp 0x4046c1
mov eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0x2bdaf2d1
jmp 0x403d99
mov dword [ebp - 0x10], 0xf9f37ae3
jmp 0x403d99
mov esi, dword [ebp - 0x14]
add esi, 0x31
mov dword [ebp - 0x14], esi
sub esp, 4
push esi
call fcn.00401b7b
add esp, 8
mov eax, 0x1fe8acfd
cmp esi, 0x9e
jae 0x4046c1
mov eax, 0x3dfc6e2f
jmp 0x4046c1
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, 0x3c4214c6
test eax, eax
je 0x404435
mov ecx, 0x20357a4c
mov dword [ebp - 0x10], ecx
jmp 0x403d99
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x10], 0x3c221f8a
jmp 0x403d99
imul eax, dword [ebp - 0x18], 0x840
add eax, 0xfffde7c0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xbb6bd3bb
jmp 0x403d99
mov eax, dword [ebp - 0x40]
mov word [eax], 0
mov dword [ebp - 0x10], 0x123d345e
jmp 0x403d99
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x36]
imul ecx, ecx
imul edx, ecx, 0x71c3
dec edx
add eax, eax
add eax, 0x6c
mov dword [ebp - 0x18], eax
mov eax, 0x662f916b
cmp edx, ecx
je 0x4046c1
mov eax, 0xb9250cea
jmp 0x4046c1
imul esi, dword [ebp - 0x14], 0x6144
add esi, 0x8d8d8
mov eax, esi
shr eax, 0xa
mov dword [ebp - 0x14], eax
sub esp, 4
push eax
call fcn.00401b7b
add esp, 8
mov eax, 0x4184e190
cmp esi, 0x19800
jb 0x4046c1
mov eax, 0x123d345e
jmp 0x4046c1
mov eax, dword [ebp - 0x38]
mov word [eax], 0
mov eax, dword [ebp - 0x2c]
movzx ecx, word [0x4710f8]
mov word [eax], cx
mov dword [ebp - 0x10], 0xc6986cd1
jmp 0x403d99
push eax
mov eax, esp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0x96e4aa91
jmp 0x403d99
imul eax, dword [ebp - 0x18], 0x3c8
add eax, 0x4b6
shr eax, 7
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x64c4a4b2
jmp 0x403d99
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x10], 0xed6ce602
jmp 0x403d99
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0x3f980cc8
jmp 0x403d99
mov eax, dword [ebp - 0x14]
shr eax, 3
imul ecx, eax, 0x83
add ecx, 0xffffee17
mov dword [ebp - 0x14], ecx
mov eax, 0x64c4a4b2
cmp ecx, 0xe
jl 0x4046c1
mov eax, 0x20357a4c
jmp 0x4046c1
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call fcn.0040efbd
add esp, 0xc
mov dword [ebp - 0x10], 0x30444667
jmp 0x403d99
imul eax, dword [ebp - 0x18], 0x8c
shr eax, 2
and eax, 0x3ffffc00
add eax, 0xffffffb8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x7dbbe635
jmp 0x403d99
imul eax, dword [ebp - 0x18], 0xf95a000
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xe5be4b7c
jmp 0x403d99
xor eax, eax
inc eax
push eax
push 0x4710fa
push eax
push dword [ebp - 0x2c]
call fcn.00408bc0
add esp, 0x10
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x10], 0xb2ef7c36
jmp 0x403d99
push 2
push 0x104
call fcn.0045cb83
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0x4afd9eea
jmp 0x403d99
mov dword [ebp - 0x10], 0x7759dc37
jmp 0x403d99
mov esi, dword [ebp - 0x14]
mov eax, 0x8e
add esi, eax
mov ebx, esi
shr ebx, 2
mov dword [ebp - 0x14], ebx
push ebx
push 0x423c
push 0x6137
push 0x3d18
call fcn.00403d83
add esp, 0x10
push ebx
push 0x6eb
push 0x232f
push 0x2b5d
call fcn.004023c2
add esp, 0x10
mov eax, 0x7759dc37
cmp esi, 0x2d8
jae 0x4046c1
mov eax, 0x64c4a4b2
jmp 0x4046c1
imul eax, dword [ebp - 0x18], 0xdf
mov dword [ebp - 0x18], eax
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x860d
dec edx
mov eax, 0xb5238c98
cmp edx, ecx
je 0x4046c1
mov eax, 0x2e68f7fd
mov dword [ebp - 0x10], eax
jmp 0x403d99
mov eax, dword [ebp - 0x30]
movzx ecx, word [0x4710fc]
mov word [eax], cx
xor eax, eax
inc eax
push eax
push 0x4710fe
push eax
push dword [ebp - 0x30]
call fcn.00408bc0
add esp, 0x10
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x10], 0x3fbd283e
jmp 0x403d99
push 2
push 0x104
call fcn.0045cb83
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 0x1c]
call edi
push eax
mov eax, esp
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], 0x3e52ca15
jmp 0x403d99
cmp eax, 0x3c4214c6
jne 0x403d99
jmp 0x40476d
cmp eax, 0x822d09c5
jne 0x403d99
imul eax, dword [ebp - 0x14], 0x5c
add eax, 0xffffff27
mov dword [ebp - 0x14], eax
push 0x1089
push eax
call fcn.004016fb
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret