Function at 0x438d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515c50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x438dd4
lea eax, [ebx + 6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp + 8]
call fcn.0041c620
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 0
movzx eax, word [esi]
test ax, ax
je 0x438e61
mov ecx, eax
push ecx
call fcn.004e88bb
add esp, 4
test eax, eax
je 0x438e0b
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x438e0d
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x438df3
test edi, edi
je 0x438e5e
mov eax, dword [ebp + 8]
sub edi, eax
sar edi, 1
js 0x4390a6
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x438e49
push edi
lea ecx, [ebp + 8]
call fcn.00411b90
mov eax, dword [ebp + 8]
cmp edi, dword [eax - 8]
jg 0x4390a6
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edi*2], cx
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
call fcn.004e88bb
add esp, 4
test eax, eax
je 0x438e85
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004e88bb
add esp, 4
test eax, eax
jne 0x438e71
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x438f4b
mov edx, dword [eax - 0xc]
sub esi, eax
sar esi, 1
test edx, edx
js 0x4390b0
mov ecx, dword [eax - 8]
mov edi, 1
sub edi, dword [eax - 4]
sub ecx, edx
or ecx, edi
jge 0x438ebc
push edx
lea ecx, [ebp + 8]
call fcn.00411b90
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
lea ecx, [eax + esi*2]
sub edi, esi
lea edx, [edi*2 + 2]
test edx, edx
je 0x438f1d
test ecx, ecx
jne 0x438eea
call fcn.004c774e
mov dword [eax], 0x16
call fcn.004c7628
mov eax, 0x16
jmp 0x438f1f
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, edx
jae 0x438f0f
call fcn.004c774e
mov dword [eax], 0x22
call fcn.004c7628
mov eax, 0x22
jmp 0x438f1f
push edx
lea ecx, [eax + esi*2]
push ecx
push eax
call fcn.004bcef0
add esp, 0xc
xor eax, eax
push eax
call fcn.0040f160
add esp, 4
test edi, edi
js 0x4390a6
mov eax, dword [ebp + 8]
cmp edi, dword [eax - 8]
jg 0x4390a6
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x438f5b
mov esi, 3
jmp 0x439073
lea edx, [ebx + 2]
nop
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x438f60
sub ebx, edx
sar ebx, 1
cmp ebx, 0x102
jbe 0x438f81
mov esi, 8
jmp 0x439073
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x438f96
mov esi, 5
jmp 0x439070
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x438fba
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x438fba
lea esi, [eax + 4]
jmp 0x439070
lea eax, [ebp + 8]
push eax
call fcn.00439970
add esp, 4
test eax, eax
mov eax, dword [ebp + 8]
je 0x438fd7
mov esi, 6
jmp 0x439073
cmp dword [eax - 0xc], 0
jl 0x4390ba
movzx eax, word [eax]
push eax
call fcn.00439600
shrd eax, edx, 0x14
add esp, 4
shr edx, 0x14
test edx, edx
ja 0x439008
jb 0x439001
cmp eax, 0x12c
jae 0x439008
mov esi, 1
jmp 0x439070
push dword [ebp + 8]
call esi
test eax, eax
jne 0x439051
lea ecx, [ebp - 0x18]
call fcn.00438a90
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00416bd0
lea ecx, [ebp - 0x18]
call fcn.00439a70
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x439048
call fcn.00438b50
mov esi, 9
jmp 0x439070
mov byte [ebp - 4], 0
call fcn.00438b50
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00416bd0
call fcn.0043a360
add esp, 4
test eax, eax
jne 0x43906e
lea esi, [eax + 2]
jmp 0x439070
xor esi, esi
mov eax, dword [ebp + 8]
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x439092
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00407af0
push 0x80070057
call fcn.00407af0
push 0x80070057
call fcn.00407af0
int3