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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov ecx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call fcn.00426d60
push edi
push 0x10000080
push 3
push edi
mov esi, eax
push edi
push SysReAllocString
cmp esi, edi
je 0x438c94
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.0047c501
add esp, 4
jmp 0x438c9d
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x438cae
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], edi
lea edi, [ebp - 8]
lea esi, [ebp - 0x2c]
call fcn.00427c30
test eax, eax
jne 0x438e88
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x438e71
cmp dword [ebp - 0x1c], eax
jl 0x438e5a
mov eax, dword [ebp - 0x20]
jg 0x438cf7
test eax, eax
je 0x438e5a
push 1
push eax
mov dword [ebp - 0x14], 0
call fcn.00418480
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x438d1c
mov dword [ebp - 4], 7
jmp 0x438e71
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
push ecx
call eax
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x438e61
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jl 0x438e5a
jg 0x438d51
cmp dword [ebp - 0x20], eax
jbe 0x438e5a
mov ecx, edi
call fcn.00426d60
mov esi, eax
test esi, esi
je 0x438d78
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0047c501
add esp, 4
jmp 0x438d87
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x438e28
lea ecx, [ebp - 0xc]
push ecx
mov eax, edi
mov dword [ebp - 0xc], 0
call fcn.00427200
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x438e61
mov ecx, dword [ebp - 0xc]
lea ebx, [ebp - 0x14]
call fcn.00438000
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], esi
test eax, eax
je 0x438dd3
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 0xc]
push eax
call ecx
add esp, 4
test esi, esi
jne 0x438e61
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x438e15
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x438e07
test dl, dl
je 0x438e03
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x438e07
add eax, 2
add ecx, 2
test dl, dl
jne 0x438de7
xor eax, eax
jmp 0x438e0c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x438e15
lea esi, [eax + 1]
jmp 0x438e17
xor esi, esi
test ebx, ebx
je 0x438e24
push ebx
call fcn.0047c501
add esp, 4
test esi, esi
jne 0x438e61
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438e30
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, edi
sub eax, dword [ebp - 0x10]
cdq
cmp edx, dword [ebp - 0x1c]
jl 0x438d51
jg 0x438e57
cmp eax, dword [ebp - 0x20]
jb 0x438d51
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00426f20
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x438e71
push eax
call fcn.0047c501
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x438e85
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 8]
push eax
call ecx
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret