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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5873f1
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5d723c]
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]
xor ebx, ebx
mov dword [ebp - 0xd4], ebx
cmp byte [esi + 0x65], bl
je 0x45b1bf
push 1
mov edx, 0x5bc374
lea ecx, [ebp - 0x28]
call fcn.00404000
add esp, 4
mov dword [ebp - 4], ebx
mov ebx, 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0xd4], ebx
jb 0x45b1a8
mov eax, dword [eax]
push eax
call fcn.0041bb90
mov ecx, eax
call fcn.0041bdd0
mov byte [ebp - 0xcd], bl
test al, al
jne 0x45b1c6
mov byte [ebp - 0xcd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x45b1f9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x45b1e7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408c70
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [ebp - 0xcd], 0
jne 0x45b4ac
cmp byte [esi + 0x64], 0
jne 0x45b214
test edi, edi
je 0x45b4ac
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
jb 0x45b221
mov ecx, dword [eax]
jmp 0x45b223
mov ecx, eax
test ecx, ecx
je 0x45b4ac
test edi, edi
je 0x45b275
sub esp, 0x18
xor edx, edx
mov ecx, esp
mov dword [ebp - 0xd4], esp
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.004083b0
mov dword [ebp - 4], 1
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x45b4ac
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0xd4], esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.004083b0
mov byte [ebp - 4], 4
call fcn.00448ad0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00448560
sub esp, 8
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00417100
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x45b31e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
setne bl
cmp eax, 8
jb 0x45b344
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409500
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
je 0x45b48b
sub esp, 0x18
lea eax, [esi + 0x34]
mov ecx, esp
mov dword [ebp - 0xd4], esp
push eax
call fcn.00407d00
mov byte [ebp - 4], 6
call fcn.00448ad0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00448560
lea ecx, [ebp - 0x9c]
call fcn.00418790
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
cmp byte [esi + 0x31], 0
mov al, byte [esi + 0x30]
push 0x5bbc64
mov byte [ebp - 0x9c], al
sete byte [ebp - 0x80]
call fcn.00407c80
push 0x5bbc68
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00409a80
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0044e4c0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.004090a0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 9
call fcn.00407c40
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 8
call fcn.00407c40
lea eax, [ebp - 0x9c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xd8]
call fcn.004162f0
add esp, 4
lea ecx, [ebp - 0xd4]
call fcn.00412670
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00407c40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x45b46a
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.00409500
xor eax, eax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
mov bl, 1
mov word [ebp - 0x98], ax
jmp 0x45b48d
xor bl, bl
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00407c40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00407c40
mov al, bl
jmp 0x45b4ae
mov al, 1
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.005126ae
mov esp, ebp
pop ebp
ret 4