Function at 0x4a4300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654578
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6dc0b8]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004a5ef0
test al, al
je 0x4a4461
lea ebx, [edi + 8]
mov dword [esi], 0
push ebx
lea ecx, [esi + 0x28]
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov word [esi + 0x24], 0
call fcn.0049f520
mov byte [esi + 0x25], 1
movzx eax, word [ebx]
cmp eax, 0x61
jb 0x4a43a0
cmp eax, 0x7a
jbe 0x4a43aa
cmp eax, 0x41
jb 0x4a43f8
cmp eax, 0x5a
ja 0x4a43f8
cmp word [ebx + 2], 0x3a
jne 0x4a43f8
cmp word [edi + 0xc], 0
jne 0x4a43f8
mov ax, word [ebx]
lea edx, [ebp - 0x28]
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x16], 0x5c003a
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004a6de0
add esp, 8
test al, al
je 0x4a43f8
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov al, 1
jmp 0x4a478c
mov dword [ebp - 0x30], 0xffffffff
push 0x80
push 3
push 1
push accept
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.004a4c90
mov ecx, edi
mov bl, al
call fcn.004a5ef0
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x2c], al
call fcn.004a50b0
test bl, bl
je 0x4a4449
cmp byte [ebp - 0x2b], 0
je 0x4a4447
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov bl, 1
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4a478a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a478a
mov ecx, edi
call fcn.004a61a0
mov ebx, eax
test ebx, ebx
js 0x4a46b5
cmp word [edi + ebx*2 + 2], 0
lea eax, [edi + ebx*2]
je 0x4a46b5
push eax
lea ecx, [ebp - 0x1c]
call fcn.0049f410
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0049f410
mov byte [ebp - 4], 2
cmp ebx, dword [ebp - 0x28]
jae 0x4a44af
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x28], ebx
mov word [eax + ebx*2], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 6
jbe 0x4a44ce
mov eax, dword [ebp - 0x1c]
add ecx, 0xfffffffa
mov edx, 0x6ab940
lea ecx, [eax + ecx*2]
call fcn.0049eb60
test al, al
jne 0x4a44db
push str.:_DATA
lea ecx, [ebp - 0x1c]
call fcn.0049f700
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
cmp ecx, 0x61
jb 0x4a44eb
cmp ecx, 0x7a
jbe 0x4a44f5
cmp ecx, 0x41
jb 0x4a4536
cmp ecx, 0x5a
ja 0x4a4536
cmp word [eax + 2], 0x3a
jne 0x4a4536
cmp ebx, 2
je 0x4a450d
cmp ebx, 3
jne 0x4a4536
cmp word [eax + 4], 0x5c
jne 0x4a4536
mov ecx, esi
call fcn.004a41d0
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
xor edx, edx
mov dword [ecx + 4], 0
mov word [eax], dx
cmp ebx, 2
jne 0x4a4546
lea eax, [ebp - 0x2c]
push eax
call fcn.0049f5a0
jmp 0x4a4546
push eax
mov ecx, esi
call fcn.004a4300
test al, al
je 0x4a46a1
and dword [esi + 0x20], 0xfffffbef
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041dde0
push 8
mov byte [ebp - 4], 3
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x60], eax
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 3
mov word [eax], cx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
call fcn.004a4180
test al, al
je 0x4a464f
mov ebx, dword [ebp - 0x1c]
nop dword [eax]
cmp byte [ebp - 0x1d], 0
je 0x4a4647
mov edi, dword [ebp - 0x60]
mov edx, ebx
mov ecx, edi
call fcn.0049ea70
test al, al
jne 0x4a460e
push edi
mov byte [ebp - 4], 3
call fcn.00545b61
push 8
call fcn.00545b74
xor ecx, ecx
mov dword [ebp - 0x60], eax
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 3
mov word [eax], cx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
call fcn.004a4180
test al, al
jne 0x4a45b0
jmp 0x4a464f
mov eax, dword [ebp - 0x5c]
cmp eax, 7
jbe 0x4a4626
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x4a4626
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x60]
push eax
lea ecx, [esi + 0x28]
call fcn.0049f770
mov eax, dword [ebp - 0x50]
mov dword [esi], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
mov byte [ebp - 0x1d], 1
jmp 0x4a4659
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], 0
push edi
call fcn.00545b61
push dword [ebp - 0x3c]
call fcn.00545b61
mov eax, dword [ebp - 0x40]
add esp, 8
cmp eax, 0xffffffff
je 0x4a4687
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x40]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00545b61
push ebx
call fcn.00545b61
mov al, byte [ebp - 0x1d]
add esp, 8
jmp 0x4a478c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00545b61
push dword [ebp - 0x1c]
call fcn.00545b61
add esp, 8
mov dword [ebp - 0x44], 0xffffffff
push esi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 5
call fcn.004a3d00
test al, al
jne 0x4a4779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x4a46fd
cmp ebx, 0x35
je 0x4a46fd
cmp ebx, 0x43
je 0x4a46fd
cmp ebx, 0x7b
je 0x4a46fd
cmp ebx, 0xa1
jne 0x4a48b4
movzx eax, word [edi]
xor edx, edx
cmp eax, 0x5c
je 0x4a470c
cmp eax, 0x2f
jne 0x4a4734
movzx ecx, word [edi + 2]
cmp ecx, 0x5c
je 0x4a471a
cmp ecx, 0x2f
jne 0x4a4734
cmp word [edi + 4], 0x3f
jne 0x4a4734
movzx ecx, word [edi + 6]
cmp ecx, 0x5c
je 0x4a472f
cmp ecx, 0x2f
jne 0x4a4734
mov edx, 4
cmp eax, 0x5c
je 0x4a473e
cmp eax, 0x2f
jne 0x4a47aa
cmp word [edi + 2], 0
jne 0x4a47aa
mov ecx, edi
call fcn.004a4220
mov edx, eax
cmp edx, 0xffffffff
je 0x4a48b4
test dl, 0x10
je 0x4a48b4
mov ecx, esi
call fcn.004a41d0
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x2c], 0
mov word [eax], cx
mov dword [esi + 0x20], edx
mov bl, 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xffffffff
je 0x4a478a
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
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.00545b50
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + edx*2]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.004a5e50
test al, al
je 0x4a480b
cmp word [edi + edx*2 + 6], 0
jne 0x4a480b
mov ecx, edi
call fcn.004a4220
cmp eax, 0xffffffff
je 0x4a48b4
test al, 0x10
je 0x4a48b4
mov ecx, esi
call fcn.004a41d0
push dword [ebp - 0x34]
lea ecx, [esi + 0x28]
mov dword [esi + 0x20], eax
call fcn.0049f520
cmp dword [esi + 0x2c], 2
jbe 0x4a4779
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x2c], 2
mov word [eax + 4], cx
jmp 0x4a4779
mov ecx, edi
call fcn.004a6030
test eax, eax
je 0x4a48b4
cmp word [edi + eax*2], 0
lea eax, [edi + eax*2]
mov dword [ebp - 0x34], eax
je 0x4a48b4
mov ecx, eax
call fcn.004a5dc0
test eax, eax
jns 0x4a48b4
push edi
lea ecx, [ebp - 0x2c]
call fcn.0049f410
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.004263d0
push 0x2a
lea ecx, [ebp - 0x2c]
call fcn.00403d00
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x1d], 0
call fcn.004a3d00
test al, al
je 0x4a4888
lea eax, [esi + 0x28]
mov edx, 0x6aa25c
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00421b90
test al, al
je 0x4a4884
mov ecx, dword [ebp - 0x14]
jmp 0x4a48d3
mov byte [ebp - 0x1d], 1
mov ecx, edi
call fcn.004a4220
cmp byte [ebp - 0x1d], 0
mov edx, eax
jne 0x4a48bb
cmp edx, 0xffffffff
je 0x4a48a1
test dl, 0x10
jne 0x4a48bb
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00545b61
add esp, 4
xor bl, bl
jmp 0x4a477b
mov ecx, esi
call fcn.004a41d0
cmp edx, 0xffffffff
lea ecx, [esi + 0x28]
mov eax, 0x10
cmovne eax, edx
mov dword [esi + 0x20], eax
push dword [ebp - 0x34]
call fcn.0049f520
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00545b61
add esp, 4
jmp 0x4a4779