Function at 0x4643e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a09e3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4c40e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004660d0
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x464706
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2 + 2]
test eax, eax
je 0x464706
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x58]
call fcn.00462d50
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00462d50
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00460ef0
mov dword [ebp - 0x90], 6
lea ecx, [ebp - 0x58]
call fcn.00402e60
cmp eax, 6
jbe 0x4644a2
push 0x4a705c
push 6
lea ecx, [ebp - 0x58]
call fcn.004657b0
push eax
call fcn.00461650
add esp, 8
movzx eax, al
test eax, eax
jne 0x4644af
push str.:_DATA
lea ecx, [ebp - 0x58]
call fcn.00463120
mov byte [ebp - 0x12], 1
lea ecx, [ebp - 0x4c]
call fcn.00402e50
push eax
call fcn.00465ee0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x464519
cmp dword [ebp - 0x28], 2
je 0x4644ef
cmp dword [ebp - 0x28], 3
jne 0x464519
lea ecx, [ebp - 0x4c]
call fcn.00402e50
mov edx, 2
shl edx, 1
movzx eax, word [eax + edx]
cmp eax, 0x5c
jne 0x464519
mov ecx, dword [ebp - 0x10]
call fcn.004642c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00460f40
cmp dword [ebp - 0x28], 2
jne 0x464517
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00462f10
jmp 0x46452d
lea ecx, [ebp - 0x4c]
call fcn.00402e50
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004643e0
mov byte [ebp - 0x12], al
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x4646eb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
and ecx, 0xfffffbef
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00460c70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00465410
mov byte [ebp - 4], 3
lea edx, [ebp - 0x21]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00464db0
movzx ecx, al
test ecx, ecx
jne 0x4645d6
mov byte [ebp - 0x1f], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00465450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00460d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00460e00
mov al, byte [ebp - 0x1f]
jmp 0x464a4f
movzx edx, byte [ebp - 0x21]
test edx, edx
jne 0x464628
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x1a], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00465450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00460d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00460e00
mov al, byte [ebp - 0x1a]
jmp 0x464a4f
lea ecx, [ebp - 0x58]
call fcn.00402e50
push eax
lea ecx, [ebp - 0x7c]
call fcn.00465680
movzx eax, al
test eax, eax
je 0x4646cb
lea ecx, [ebp - 0x7c]
call fcn.00402e60
cmp eax, 7
jbe 0x464665
lea ecx, [ebp - 0x7c]
call fcn.00402e60
sub eax, 6
push eax
lea ecx, [ebp - 0x7c]
call fcn.00460ef0
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00463180
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x6c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x68]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x24], 1
mov byte [ebp - 0x22], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00465450
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00460d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00460e00
mov al, byte [ebp - 0x22]
jmp 0x464a4f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.00465450
jmp 0x46456e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00460e00
lea ecx, [ebp - 0x18]
call fcn.00460d20
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00464aa0
movzx edx, al
test edx, edx
je 0x464747
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x1c]
jmp 0x464a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
je 0x464775
cmp dword [ebp - 0x2c], 0x35
je 0x464775
cmp dword [ebp - 0x2c], 0x43
je 0x464775
cmp dword [ebp - 0x2c], 0x7b
je 0x464775
cmp dword [ebp - 0x2c], 0xa1
jne 0x464a39
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00465f60
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x464796
mov dword [ebp - 0x34], 4
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x5c
je 0x4647be
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
cmp eax, 0x2f
jne 0x46482a
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x46482a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00464fc0
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x464825
mov edx, dword [ebp - 0x40]
and edx, 0x10
je 0x464825
mov ecx, dword [ebp - 0x10]
call fcn.004642c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00460f40
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x20], ecx
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x20]
jmp 0x464a4f
jmp 0x464a39
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.004658a0
add esp, 4
movzx edx, al
test edx, edx
je 0x4648c2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 + 6]
test edx, edx
jne 0x4648c2
mov eax, dword [ebp + 8]
push eax
call fcn.00464fc0
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4648bd
mov ecx, dword [ebp - 0x3c]
and ecx, 0x10
je 0x4648bd
mov ecx, dword [ebp - 0x10]
call fcn.004642c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00462e70
push 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00460ef0
mov byte [ebp - 0x1e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x1e]
jmp 0x464a4f
jmp 0x464a39
mov ecx, dword [ebp + 8]
push ecx
call fcn.00465d30
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jbe 0x464a39
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x464a39
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.00465800
add esp, 4
test eax, eax
jge 0x464a39
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x64]
call fcn.00462d50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.00460ea0
push 0x2a
lea ecx, [ebp - 0x64]
call fcn.00460e30
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402e50
push eax
lea ecx, [ebp - 0x18]
call fcn.00464aa0
movzx ecx, al
test ecx, ecx
je 0x4649a4
push 0x4a7074
mov edx, dword [ebp - 0x10]
add edx, 0x28
push edx
call fcn.00465470
add esp, 8
movzx eax, al
test eax, eax
je 0x4649a0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00462e70
mov byte [ebp - 0x19], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x19]
jmp 0x464a4f
mov byte [ebp - 0x11], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00464fc0
add esp, 4
mov dword [ebp - 0x38], eax
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x4649c9
cmp dword [ebp - 0x38], 0xffffffff
je 0x464a23
mov eax, dword [ebp - 0x38]
and eax, 0x10
je 0x464a23
mov ecx, dword [ebp - 0x10]
call fcn.004642c0
cmp dword [ebp - 0x38], 0xffffffff
je 0x4649e2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x20], edx
jmp 0x4649ea
mov ecx, dword [ebp - 0x10]
call fcn.004657e0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00462e70
mov byte [ebp - 0x1b], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00460e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x1b]
jmp 0x464a4f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00460e00
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00465430
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4