Function at 0x420680
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a591b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], ecx
lea ecx, [ebp - 0xb0]
call fcn.0041d000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x420827
lea edx, [ecx + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.0041cf20
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00406f00
mov edx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x420747
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42073d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b17
push edx
push ecx
call fcn.0044235d
add esp, 8
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x420827
lea edx, [ecx + 0x1a]
lea ecx, [ebp - 0xe4]
call fcn.0041cf20
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00406f00
mov edx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x4207b5
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4207ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b1c
push edx
push ecx
call fcn.0044235d
add esp, 8
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x420827
lea ecx, [ebp - 0xe4]
call fcn.0041d170
push eax
lea ecx, [ebp - 0xb0]
call fcn.00406f00
mov edx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x420816
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42080c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b21
push edx
push ecx
call fcn.0044235d
add esp, 8
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
jne 0x420827
xor esi, esi
jmp 0x420abb
cmp dword [ebp - 0x9c], 8
lea eax, [ebp - 0xb0]
cmovae eax, dword [ebp - 0xb0]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x420850
push 0x5c
lea ecx, [ebp - 0xb0]
call fcn.00406d70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00454e03
add esp, 4
call fcn.00454de2
cdq
mov esi, 0x3e
idiv esi
mov dword [ebp - 0xe8], edx
call fcn.00454de2
cdq
idiv esi
mov edi, edx
call fcn.00454de2
cdq
lea ecx, [ebp - 0xb0]
idiv esi
mov eax, dword [ebp - 0xe8]
mov esi, edx
movsx eax, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movzx eax, ax
push eax
call fcn.00406d70
movsx eax, byte [edi + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
lea ecx, [ebp - 0xb0]
movzx eax, ax
push eax
call fcn.00406d70
movsx eax, byte [esi + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
lea ecx, [ebp - 0xb0]
movzx eax, ax
push eax
call fcn.00406d70
lea eax, [ebp - 0xb0]
xor edi, edi
push eax
lea ecx, [ebp - 0xc8]
call fcn.00406fe0
mov byte [ebp - 4], 1
nop word [eax + eax]
cmp dword [ebp - 0x9c], 8
lea eax, [ebp - 0xb0]
cmovae eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420a31
mov esi, dword [ebp - 0xb8]
test esi, esi
jne 0x420949
cmp dword [ebp - 0x9c], 8
lea eax, [ebp - 0xb0]
push dword [ebp - 0xa0]
cmovae eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00407400
mov esi, dword [ebp - 0xb8]
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00443950
add esp, 0xc
lea eax, [ebp - 0x98]
push edi
push 0x4bc8dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x98]
add esp, 0xc
inc edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420980
sub eax, edx
mov ecx, SysReAllocString
sar eax, 1
sub ecx, esi
cmp ecx, eax
jb 0x420b26
cmp dword [ebp - 0xb4], 8
lea ecx, [ebp - 0xc8]
push eax
cmovae ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x98]
push eax
push esi
push ecx
push ecx
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xe4]
call fcn.004085f0
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x420a0e
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420a04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b17
push edx
push ecx
call fcn.0044235d
add esp, 8
movups xmm0, xmmword [ebp - 0xe4]
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [ebp - 0xd4]
movq qword [ebp - 0xa0], xmm0
jmp 0x4208f0
cmp dword [ebp - 0x9c], 8
lea ecx, [ebp - 0xb0]
cmovae ecx, dword [ebp - 0xb0]
call fcn.00422180
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xb0]
cmp ecx, eax
je 0x420a7a
cmp dword [ebp - 0x9c], 8
push dword [ebp - 0xa0]
cmovae eax, dword [ebp - 0xb0]
push eax
call fcn.00407400
mov edx, dword [ebp - 0xb4]
mov esi, 1
cmp edx, 8
jb 0x420abb
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ab1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b2b
push edx
push ecx
call fcn.0044235d
add esp, 8
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x420af7
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420aed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b2b
push edx
push ecx
call fcn.0044235d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004452a7
call fcn.004452a7
call fcn.004452a7
call fcn.00401470
call fcn.004452a7
int3