Function at 0x404340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc556
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x67432c]
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 0x4043a2
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004029a0
add ebx, 0x64
mov dword [ebp - 0xe8], ebx
cmp ebx, edi
je 0x4043bb
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.004029a0
lea eax, [ebp - 0x28]
push str.03602957036756381159024368452929
push eax
call fcn.00452b2d
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str.29459336031133650811135409474630
push eax
call fcn.00452b2d
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.0045731f
mov eax, dword [ebp - 0x5c]
add esp, 0x1c
cmp eax, 8
jb 0x404401
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402c10
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 0x40442d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402c10
call fcn.00452077
test al, al
je 0x404456
aad 0xc5
shr dword [esi + 0x48], cl
or al, 0x67
cld
adc ah, cl
out dx, al
into
insb byte es:[edi], dx
xchg ebp, eax
xchg ecx, eax
in eax, dx
mov dword [0x39d0a373], eax
ja 0x4043ec
jae 0x4044a5
pushfd
sub byte [esi - 0x54], bl
inc edx
fsub st(0), st(0)
mov cl, 0xe0
add al, 0
call fcn.0045250c
test al, al
je 0x404481
push es
mov dword [0xa0de5268], eax
out dx, eax
mov ds, ecx
push 0x6b419557
scasb al, byte es:[edi]
xchg esi, eax
in al, dx
arpl word [edi - 0x50ceedee], ax
ljmp 0xbd8b
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x5e6948
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00402ac0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5e6948
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00402ac0
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x4044ef
test dword [eax], esi
invalid
mov eax, dword [edi]
jmp 0x4044f1
mov eax, edi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004555a8
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.004554a1
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x40456a
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x404547
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402c10
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.00405aa0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x404583
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402c10
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00457bef
push 0
call fcn.00483f7c
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
add byte [eax], al
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.0045218b
scasb al, byte es:[edi]
fild dword [eax + eax]
test al, al
je 0x4045f8
add eax, 0xbaa128e7
loop 0x404624
cmp al, 0xaa
jle 0x404666
xchg byte [edi - 0x3b6cf282], cl
mov edi, dword [ebp - 0xdc]
call fcn.00452101
test al, al
je 0x404617
mov esi, 0xf465bd2b
jae 0x404617
je 0x4045b7
jl 0x4045d9
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 0x404657
mov eax, dword [ecx]
jmp 0x404659
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.004029a0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0xe0]
mov ecx, ebx
push esi
call fcn.00404f80
test al, al
je 0x404822
dec dword [ebx - 0x6274f78b]
and bh, bh
invalid
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xec], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00483ea9
add eax, dword [ebx]
add esp, 4
cmp eax, dword [ebp - 0xe4]
jl 0x4046d6
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x4047fa
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004029a0
jmp 0x4047fa
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00457bef
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4046ef
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.004740b2
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00404120
cmp dword [ebp - 0x48], 0
jne 0x404776
lea esi, [ebx + 0x64]
push esi
push edi
call fcn.00403f20
add esp, 8
test al, al
je 0x404773
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00457bef
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x404749
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.004740b2
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00404120
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403ee0
add esp, 8
test al, al
je 0x404822
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x4047ad
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004029a0
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xf0], esp
push eax
call fcn.00404030
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00404030
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push edi
call fcn.00404030
push esi
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00405600
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00405580
mov ecx, eax
call fcn.00410c70
mov esi, 1
jmp 0x404b1c
cmp dword [ebp + 0x28], 0
jne 0x40483d
mov ecx, dword [ebp - 0xd8]
push 0x5e6948
call fcn.004042f0
jmp 0x404b1a
mov edi, dword [ebp - 0xd8]
cmp dword [edi + 0x10], 0
jne 0x4048f3
test esi, esi
je 0x404897
add ebx, 0x1c
cmp dword [ebx + 0x14], 8
jb 0x40485c
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004559e4
add esp, 8
mov ecx, edi
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00455749
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x4048db
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x4048a2
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004559e4
add esp, 8
mov ecx, edi
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00455749
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00405b10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00447330
call fcn.004524c7
test al, al
je 0x40490c
rcl dword [edi + 0xf79ace], cl
stosd dword es:[edi], eax
hlt
call fcn.00452215
test al, al
je 0x40492c
jnp 0x404947
mov esi, 0x5353bbdc
test esp, esi
stc
push 0x40
push ss
fist word [eax + eax - 0x4322422a]
adc bl, byte [esi - 0x4f]
call fcn.00452101
test al, al
je 0x40495a
scasd eax, dword es:[edi]
lea ebx, [ebx + 0x5a]
push 0x6fcb55d2
jecxz 0x40499f
mov al, byte [0xf8f6ef42]
dec ebp
xchg ah, bh
cld
mov dword [edi + 0x13], esp
popal
jnp 0x40498b
in eax, dx
movsb byte es:[edi], byte [esi]
and ecx, eax
leave
mov cl, 0x8b
mov ebp, 0xffffff28
cmp dword [edi + 0x14], 8
jb 0x404964
mov eax, dword [edi]
jmp 0x404966
mov eax, edi
push eax
call int.00453781
mov esi, dword [ebp - 0xdc]
push esi
push dword [ebp - 0xe8]
call fcn.00403ee0
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
mov ecx, ebx
push edi
test al, al
jne 0x4049a7
sal byte [ebp + 0x19], 0x6a
add al, ch
pop ebx
add al, byte [eax]
add byte [ebp - 0x3f6af040], al
push 0
call fcn.00404bf0
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x4049b7
inc dword [eax + eax*8 - 0x74a8ec8b]
retf
push edi
mov ecx, ebx
push 1
call fcn.00404bf0
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
jb 0x4049c1
mov eax, dword [edi]
jmp 0x4049c3
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404afc
cmp byte [ebp - 0xd1], 0
je 0x404afc
cmp dword [ebp - 0xec], 0
lea eax, [ebp - 0x40]
jne 0x4049ef
push 2
jmp 0x4049f1
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00405580
mov ecx, eax
call fcn.00410c70
cmp dword [ebp - 0x48], 0
jne 0x404ab4
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00457bef
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x404a2d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.004740b2
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00404120
cmp dword [ebp - 0x48], 0
jne 0x404ab4
lea eax, [ebx + 0x64]
push eax
push esi
call fcn.00403f20
add esp, 8
test al, al
je 0x404ab4
lea eax, [ebx + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00457bef
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x404a8a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call int.004740b2
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00404270
lea ecx, [ebp - 0x28]
call fcn.00447330
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00404120
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
push edi
call fcn.00404030
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00404030
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push esi
call fcn.00404030
push dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00405600
jmp 0x404b1a
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.00405580
mov ecx, eax
call fcn.00410c70
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x404b31
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402c10
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 0x404b63
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00402c10
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 0x404b95
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402bc0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00447330
lea ecx, [ebp - 0xb8]
call fcn.00447330
lea ecx, [ebp - 0xd0]
call fcn.00447330
lea ecx, [ebp + 0xc]
call fcn.00447330
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.0046d802
mov esp, ebp
pop ebp
ret 0x24