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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x43931c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40773c
xor eax, eax
xor edx, edx
jmp 0x40798f
test al, 0x10
je 0x40793d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x407749
sub eax, edx
sar eax, 1
lea esi, [eax + 3]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004140aa
mov ebx, eax
pop ecx
mov dword [ebp - 0x270], ebx
test ebx, ebx
je 0x407733
push edi
push esi
push ebx
call fcn.00415963
add esp, 0xc
push 0x4328c8
push esi
push ebx
call fcn.00415cf4
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x4077bc
push ebx
call fcn.00415817
pop ecx
jmp 0x407733
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x4328d0
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4077f3
test dx, dx
je 0x4077ef
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4077f3
add eax, 4
add ecx, 4
test dx, dx
jne 0x4077cd
xor eax, eax
jmp 0x4077f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4078f5
mov ecx, 0x4328d4
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407831
test dx, dx
je 0x40782d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407831
add eax, 4
add ecx, 4
test dx, dx
jne 0x40780b
xor eax, eax
jmp 0x407836
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4078f5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x407843
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x40785c
sub eax, edx
sar eax, 1
lea edi, [eax + ecx + 2]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004140aa
mov esi, eax
pop ecx
test esi, esi
je 0x407926
push dword [ebp - 0x274]
push edi
push esi
call fcn.00415963
add esp, 0xc
push 0x4326fc
push edi
push esi
call fcn.00415cf4
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
push esi
call fcn.00415cf4
mov ecx, dword [ebp - 0x278]
add esp, 0xc
push esi
call fcn.004076f4
add dword [ebp - 0x26c], eax
push esi
adc dword [ebp - 0x268], edx
call fcn.00415817
pop ecx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
call ebx
mov edi, dword [ebp - 0x274]
jmp 0x407904
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
call ebx
test eax, eax
jne 0x4077c2
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x270]
call fcn.00415817
pop ecx
jmp 0x407983
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x270]
jmp 0x4077b1
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f70
leave
ret 4