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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684200
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov ebx, dword [ebp + 0x14]
push esi
push ecx
push eax
mov dword [ebp - 4], 0
call fcn.0046da90
add esp, 0xc
push esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.0046da90
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ff51
movzx esi, byte [ebp + 0xc]
mov edx, dword [ebp - 0x18]
add esi, esi
cmp edx, 8
jb 0x45fefc
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45fef2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460275
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x45ff4a
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ff40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46027a
push edx
push ecx
call fcn.0048af59
add esp, 8
mov eax, esi
jmp 0x460259
test ebx, ebx
je 0x460087
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
test ecx, ecx
je 0x45ffbd
dec ecx
lea eax, [ebp - 0x2c]
cmp edx, 8
cmovae eax, esi
movzx eax, word [eax + ecx*2]
cmp eax, 0x2f
je 0x45ff7e
cmp eax, 0x5c
jne 0x45ff62
cmp ecx, 0xffffffff
je 0x45ffbd
cmp edx, 8
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 7
cmovae eax, esi
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, esi
xor edx, edx
mov word [ebp - 0x44], dx
cmp ecx, eax
je 0x45ffd1
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.0044eb60
jmp 0x45ffd1
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push dword [ebp - 0x78]
push eax
push ecx
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.0046fcc0
cmp byte [ebp - 0x78], 0
je 0x460049
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0044cf30
add esp, 8
push eax
mov byte [ebp - 4], 4
call fcn.004cbec0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x460049
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46003f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46027f
push edx
push ecx
call fcn.0048af59
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x460087
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46007d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460284
push edx
push ecx
call fcn.0048af59
add esp, 8
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x64], 0
cmovae edx, dword [ebp - 0x2c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4600b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.0044eb60
mov byte [ebp - 4], 5
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0x5c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4600f1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0044eb60
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004cdf80
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov esi, eax
cmp edx, 8
jb 0x46015c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460152
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460289
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x4601aa
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4601a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46028e
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x18]
test esi, esi
jne 0x45fec5
cmp edx, 8
jb 0x4601ec
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4601e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460275
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x460236
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46022c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460275
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
jmp 0x460259
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
call fcn.004aae7a
int3