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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp + 8]
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x431b93
sub edx, edi
mov edi, dword [ebp + 0xc]
sar edx, 1
movzx eax, word [esi + edx*2 - 2]
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431bb7
sub ecx, edx
mov dword [ebp + 0xc], 0
sar ecx, 1
push 0x10002
movzx eax, word [edi + ecx*2 - 2]
mov ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call fcn.0047d522
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xffffffff
mov word [eax], cx
push 0x10002
mov dword [ebp - 4], ecx
call fcn.0047d522
mov ebx, eax
mov dword [ebp - 0x30], 0xffffffff
xor eax, eax
mov dword [ebp - 0x34], ebx
add esp, 8
mov word [ebx], ax
cmp word [ebp - 0x10], 0x5c
mov byte [ebp - 4], 1
jne 0x431ce7
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.00457220
mov ecx, dword [ebp - 0x2c]
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x431c66
test dx, dx
je 0x431c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x431c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x431c40
xor eax, eax
jmp 0x431c6b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x431c78
mov dword [ebp + 0xc], 1
jmp 0x431ce7
test esi, esi
je 0x431c80
cmp esi, ebx
je 0x431ca8
push ebx
call fcn.0047d4ed
xor ebx, ebx
mov dword [ebp - 0x30], 0xffffffff
add esp, 4
mov dword [ebp - 0x34], ebx
test esi, esi
je 0x431ca8
or edx, 0xffffffff
mov ecx, esi
call fcn.00412220
mov ebx, eax
mov dword [ebp - 0x34], ebx
mov esi, 1
test ebx, ebx
je 0x431ce2
mov ecx, ebx
call fcn.004122d0
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x431cde
cmp eax, esi
mov ecx, 0
cmovl esi, eax
sub eax, esi
mov dword [ebp - 0x30], eax
mov word [ebx + eax*2], cx
jns 0x431cde
mov ecx, ebx
call fcn.004122d0
mov dword [ebp - 0x30], eax
mov esi, ebx
jmp 0x431ce7
mov esi, 0x4c2758
mov ecx, dword [ebp - 0x2c]
mov edx, esi
push 0x8000
call fcn.0041ae80
mov edx, dword [ebp - 0x2c]
add esp, 4
mov ecx, edx
mov dword [ebp - 0x28], 0xffffffff
call fcn.0045e850
cmp word [ebp - 0x14], 0x5c
je 0x431d36
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431d36
test al, 0x10
je 0x431d75
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x19e4], 0
je 0x431d36
test eax, 0x400
jne 0x431d75
cmp word [ebp - 0x1c], 0x5c
je 0x431d75
mov ecx, dword [ebp + 0x14]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x431d42
mov esi, dword [ebp + 0x10]
mov ecx, esi
sub ecx, edi
nop dword [eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x431d60
jmp 0x431e85
cmp word [ebp - 0x20], 0x5c
je 0x431d9c
mov edx, edi
mov dword [ebp - 0x28], 0xffffffff
mov edi, dword [ebp - 0x2c]
mov ecx, edi
push 0x7fffffff
push 0x4b8770
call fcn.0045c480
add esp, 8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x24], 0
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x431ed5
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
push esi
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x431ed5
mov edx, dword [ebp + 8]
test edx, edx
je 0x431e1d
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431df0
sub ecx, edi
sar ecx, 1
lea ecx, [esi + ecx*2]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x431e02
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x431e85
cmp dword [ebp + 0xc], 0
je 0x431ed5
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.00457220
mov ecx, dword [ebp - 0x2c]
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x431e66
test dx, dx
je 0x431e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x431e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x431e40
xor eax, eax
jmp 0x431e6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x431e85
push 0x7fffffff
push 0x4b87a0
xor edx, edx
mov ecx, esi
call fcn.0045c480
add esp, 8
push 0
lea ecx, [ebp - 0x54]
call fcn.00455d90
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00456200
test eax, eax
jne 0x431eac
lea ecx, [ebp - 0x54]
xor esi, esi
call fcn.00455e20
jmp 0x431ed7
push 1
push 0x4b879c
push 0x4b87ac
push 0x8000
push esi
lea ecx, [ebp - 0x54]
call fcn.00455f60
lea ecx, [ebp - 0x54]
mov esi, 1
call fcn.00455e20
jmp 0x431ed7
xor esi, esi
test ebx, ebx
je 0x431ee4
push ebx
call fcn.0047d4ed
add esp, 4
push dword [ebp - 0x2c]
call fcn.0047d4ed
add esp, 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 0x10