Function at 0x45e3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x238
cmp byte [eax], 0
push edi
je 0x45e62d
mov edi, dword [esp + 0x244]
cmp byte [edi], 0
je 0x45e62d
push ebp
mov ebp, dword [esp + 0x24c]
cmp ebp, 1
je 0x45e3db
mov byte [esp + 0xb], 0
cmp ebp, 2
jne 0x45e3e0
mov byte [esp + 0xb], 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x104
push eax
call esi
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e400
sub eax, edx
je 0x45e418
cmp byte [esp + eax + 0x33], 0x5c
lea eax, [esp + eax + 0x33]
jne 0x45e418
mov byte [eax], cl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x140]
push ecx
push 0x104
push edi
call esi
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e437
sub eax, edx
je 0x45e455
cmp byte [esp + eax + 0x13b], 0x5c
lea eax, [esp + eax + 0x13b]
jne 0x45e455
mov byte [eax], cl
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
mov bl, byte [esp + 0x258]
test bl, bl
je 0x45e514
lea edx, [esp + 0x38]
push edx
call edi
cmp eax, 0xffffffff
je 0x45e52e
test al, 0x10
je 0x45e52e
movzx esi, byte [esp + 0x38]
test esi, 0xffffff80
jne 0x45e4a2
push 1
push esi
call fcn.004938f7
add esp, 8
test eax, eax
je 0x45e4a2
or esi, 0x20
mov ebx, esi
movzx esi, byte [esp + 0x140]
test esi, 0xffffff80
jne 0x45e4c6
push 1
push esi
call fcn.004938f7
add esp, 8
test eax, eax
je 0x45e4c6
or esi, 0x20
mov eax, esi
cmp bl, al
jne 0x45e4d3
cmp byte [esp + 0x39], 0x3a
je 0x45e50d
movzx eax, byte [esp + 0x13]
push 0
push eax
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0045e3a0
add esp, 0x10
test al, al
je 0x45e52e
push 1
lea eax, [esp + 0x3c]
call fcn.0045e640
add esp, 4
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x238
ret
mov bl, byte [esp + 0x258]
lea eax, [esp + 0x140]
push eax
call edi
cmp eax, 0xffffffff
je 0x45e53b
test al, 0x10
je 0x45e52e
cmp byte [esp + 0x13], 0
jne 0x45e560
pop ebx
pop esi
pop ebp
xor al, al
pop edi
add esp, 0x238
ret
test bl, bl
jne 0x45e589
lea ecx, [esp + 0x140]
push 0
push ecx
call fcn.0044c340
add esp, 8
test al, al
jne 0x45e564
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x238
ret
test bl, bl
jne 0x45e589
lea eax, [esp + 0x38]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45e570
mov edx, dword [str..]
mov cl, byte [0x4af05c]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e590
sub eax, edx
mov byte [esp + eax + 0x39], cl
lea eax, [esp + 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e5a7
sub eax, edx
mov byte [esp + eax + 0x141], cl
xor eax, eax
xor ecx, ecx
test bl, bl
sete cl
lea edx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
mov dword [esp + 0x20], edx
inc ecx
lea eax, [esp + 0x140]
mov edx, 0x614
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x28], dx
cmp ebp, 2
jne 0x45e612
mov eax, 0x615
mov word [esp + 0x28], ax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop ebx
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop edi
add esp, 0x238
ret
xor al, al
pop edi
add esp, 0x238
ret