Function at 0x403b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1416
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62c144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xe0], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
lea edi, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0xdc], edi
cmp edi, eax
je 0x403b62
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401fa0
add ebx, 0x64
mov dword [ebp - 0xe8], ebx
cmp ebx, edi
je 0x403b7b
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00401fa0
lea eax, [ebp - 0x28]
push str.92708111084041282320521147255757
push eax
call fcn.004259a0
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str.05636756036855371168651667502429
push eax
call fcn.004259a0
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.004284c3
mov eax, dword [ebp - 0x5c]
add esp, 0x1c
cmp eax, 8
jb 0x403bc1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x403bed
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402210
call fcn.0043d273
test al, al
je 0x403c16
inc esp
pop ecx
ret
call fcn.0043d708
test al, al
je 0x403c41
rcr cl, cl
sahf
leave
inc eax
xor ah, byte [ecx - 0x4e]
cmp edi, esp
daa
pop ds
in eax, 0xb9
mov dword [ebx], esp
ror byte [ebp + 0x2e], cl
pop ebx
add dword ss:[eax], 0x62598652
dec esp
mov edi, dword [ebp - 0xdc]
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x5a6864
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.004020c0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5a6864
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.004020c0
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x403caf
mov eax, dword [edi]
jmp 0x403cb1
mov eax, edi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00427068
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426f61
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x403d2a
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x403d07
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x74], 7
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00405260
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x403d43
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402210
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004289fb
push 0
call fcn.00449c97
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xec], eax
call fcn.0043d387
test al, al
je 0x403db8
int3
call fcn.0043d2fd
test al, al
je 0x403dd7
ror byte [ebx + 0x37f784a5], cl
int 0xbd
invalid
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xa0]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x403e17
mov eax, dword [ecx]
jmp 0x403e19
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00401fa0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0xe0]
mov ecx, ebx
push esi
call fcn.00404740
test al, al
je 0x403fe2
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xec], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00449bc4
add eax, dword [ebx]
add esp, 4
cmp eax, dword [ebp - 0xe4]
jl 0x403e96
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x403fba
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401fa0
jmp 0x403fba
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.004289fb
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x403eaf
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.0043db03
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004038e0
cmp dword [ebp - 0x48], 0
jne 0x403f36
lea esi, [ebx + 0x64]
push esi
push edi
call fcn.004036e0
add esp, 8
test al, al
je 0x403f33
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.004289fb
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x403f09
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.0043db03
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004038e0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004036a0
add esp, 8
test al, al
je 0x403fe2
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x403f6d
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401fa0
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xf0], esp
push eax
call fcn.004037f0
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.004037f0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push edi
call fcn.004037f0
push esi
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00404dc0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00404d40
mov ecx, eax
call int.00416da0
mov esi, 1
jmp 0x4042dc
cmp dword [ebp + 0x28], 0
jne 0x403ffd
mov ecx, dword [ebp - 0xd8]
push 0x5a6864
call fcn.00403ab0
jmp 0x4042da
mov edi, dword [ebp - 0xd8]
cmp dword [edi + 0x10], 0
jne 0x4040b3
test esi, esi
je 0x404057
add ebx, 0x1c
cmp dword [ebx + 0x14], 8
jb 0x40401c
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004274b9
add esp, 8
mov ecx, edi
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00427209
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x40409b
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x404062
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004274b9
add esp, 8
mov ecx, edi
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00427209
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004052d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.0041a460
call fcn.0043d6c3
test al, al
je 0x4040cc
mov esi, ebp
out dx, al
xchg edx, eax
xor dword [eax + 0x73], edx
pop ebp
mov dl, 0xd7
pop esi
insd dword es:[edi], dx
in eax, 0x59
xor eax, 0x9340e8c1
add eax, dword [eax]
call fcn.0043d411
test al, al
je 0x4040ec
cmp eax, 0xb0de7953
ret
call fcn.0043d2fd
test al, al
je 0x40411a
sbb esi, ebx
jnp 0x40409d
add ecx, dword [esi - 0x2f]
loop 0x404158
hlt
cmp dword [edi + 0x14], 8
jb 0x404124
mov eax, dword [edi]
jmp 0x404126
mov eax, edi
push eax
call int.00425ea8
mov esi, dword [ebp - 0xdc]
push esi
push dword [ebp - 0xe8]
call fcn.004036a0
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
mov ecx, ebx
push edi
test al, al
jne 0x404167
push 0
call fcn.004043b0
test eax, eax
setne al
mov byte [ebp - 0xd1], al
xchg ebp, eax
ror byte [eax - 0xd07b], 0xff
test al, al
jne 0x404177
push edi
mov ecx, ebx
push 1
call fcn.004043b0
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
jb 0x404181
mov eax, dword [edi]
jmp 0x404183
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4042bc
cmp byte [ebp - 0xd1], 0
je 0x4042bc
cmp dword [ebp - 0xec], 0
lea eax, [ebp - 0x40]
jne 0x4041af
push 2
jmp 0x4041b1
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00404d40
mov ecx, eax
call int.00416da0
cmp dword [ebp - 0x48], 0
jne 0x404274
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.004289fb
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x4041ed
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.0043db03
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004038e0
cmp dword [ebp - 0x48], 0
jne 0x404274
lea eax, [ebx + 0x64]
push eax
push esi
call fcn.004036e0
add esp, 8
test al, al
je 0x404274
lea eax, [ebx + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004289fb
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x40424a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.0043db03
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00403a30
lea ecx, [ebp - 0x28]
call fcn.0041a460
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004038e0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
push edi
call fcn.004037f0
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.004037f0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push esi
call fcn.004037f0
push dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00404dc0
jmp 0x4042da
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00404d40
mov ecx, eax
call int.00416da0
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4042f1
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x404323
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
cmp eax, 0x10
jb 0x404355
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004021c0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0041a460
lea ecx, [ebp - 0xb8]
call fcn.0041a460
lea ecx, [ebp - 0xd0]
call fcn.0041a460
lea ecx, [ebp + 0xc]
call fcn.0041a460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439cb7
mov esp, ebp
pop ebp
ret 0x24