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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7808
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
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 0x4351b3
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 0x4351d7
sub ecx, edx
mov dword [ebp + 0xc], 0
sar ecx, 1
push 0x10002
mov dword [ebp - 0x28], 0xffffffff
movzx eax, word [edi + ecx*2 - 2]
mov ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call fcn.00487989
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov word [eax], cx
mov dword [ebp - 4], ecx
push 0x10002
mov dword [ebp - 0x30], 0xffffffff
call fcn.00487989
mov ebx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebx], ax
cmp word [ebp - 0x10], 0x5c
mov byte [ebp - 4], 1
jne 0x43532c
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.0045c7b0
mov ecx, dword [ebp - 0x2c]
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435286
test dx, dx
je 0x435282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435286
add eax, 4
add ecx, 4
test dx, dx
jne 0x435260
xor eax, eax
jmp 0x43528b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43529b
mov dword [ebp + 0xc], 1
jmp 0x43532c
mov dword [ebp - 0x30], 0xffffffff
test esi, esi
je 0x4352aa
cmp esi, ebx
je 0x4352d2
push ebx
call fcn.00487954
xor ebx, ebx
mov dword [ebp - 0x30], 0xffffffff
add esp, 4
mov dword [ebp - 0x34], ebx
test esi, esi
je 0x4352d2
or edx, 0xffffffff
mov ecx, esi
call fcn.00412580
mov ebx, eax
mov dword [ebp - 0x34], ebx
mov edx, 1
test ebx, ebx
je 0x435327
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4352e0
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x30], ecx
test ecx, ecx
jle 0x435323
cmp ecx, 1
mov eax, 0
cmovl edx, ecx
sub ecx, edx
mov dword [ebp - 0x30], ecx
mov word [ebx + ecx*2], ax
jns 0x435323
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435311
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x30], ecx
mov esi, ebx
jmp 0x43532c
mov esi, 0x4c1430
mov eax, dword [ebp - 0x2c]
mov ebx, esi
mov ecx, 0x7fff
sub ebx, eax
nop dword [eax + eax]
movzx edx, word [ebx + eax]
test dx, dx
je 0x435354
mov word [eax], dx
dec ecx
add eax, 2
test ecx, ecx
jg 0x435340
mov ebx, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, ebx
mov dword [ebp - 0x28], 0xffffffff
call fcn.00464df0
cmp word [ebp - 0x14], 0x5c
je 0x435396
push ebx
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435396
test al, 0x10
je 0x4353d5
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x1a14], 0
je 0x435396
test eax, 0x400
jne 0x4353d5
cmp word [ebp - 0x1c], 0x5c
je 0x4353d5
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 0x4353a2
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 0x4353c0
jmp 0x4354e5
cmp word [ebp - 0x20], 0x5c
je 0x4353fb
push SysReAllocString
push 0x4c1430
mov edx, edi
mov dword [ebp - 0x28], 0xffffffff
mov ecx, ebx
call fcn.00462880
add esp, 8
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 8], 0
push 0x8000
push esi
mov dword [ebp - 0x24], 0
call ebx
test eax, eax
je 0x435577
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
push esi
push 0x8000
push edi
call ebx
test eax, eax
je 0x435577
mov edx, dword [ebp + 8]
test edx, edx
je 0x43547d
mov ecx, esi
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435450
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 0x435462
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x4354e5
cmp dword [ebp + 0xc], 0
je 0x435577
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 0x28], 0xffffffff
call fcn.0045c7b0
mov ecx, dword [ebp - 0x2c]
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4354c6
test dx, dx
je 0x4354c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4354c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4354a0
xor eax, eax
jmp 0x4354cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4354e5
push SysReAllocString
push 0x4c17a4
xor edx, edx
mov ecx, esi
call fcn.00462880
add esp, 8
push 0x2710
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.THashTblT_unsigned_int_.0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x4c], 0x2710
call fcn.0041b900
mov dword [ebp - 0x54], vtable.PathArray.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0045b9b0
test eax, eax
jne 0x43554e
lea ecx, [ebp - 0x54]
xor esi, esi
call fcn.0045b530
jmp 0x435579
push 1
push 0x4c1430
push 0x4c1dbc
push 0x8000
push esi
lea ecx, [ebp - 0x54]
call fcn.0045b730
lea ecx, [ebp - 0x54]
mov esi, 1
call fcn.0045b530
jmp 0x435579
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x435589
push eax
call fcn.00487954
add esp, 4
push dword [ebp - 0x2c]
call fcn.00487954
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