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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 esi, ecx
push 0x10002
mov dword [ebp - 0x24], 0xffffffff
call fcn.00487989
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], ebx
mov word [ebx], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
cmp ecx, dword [esi + 0x7d4]
jge 0x415847
mov eax, dword [esi + 0x7d8]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
jmp 0x415849
xor edi, edi
cmp dword [esi + 0xe84], 0
jne 0x415862
cmp dword [esi + 0xe88], 0
jne 0x415862
mov eax, 1
jmp 0x415864
xor eax, eax
cmp word [edi + 2], 0x3a
mov dword [ebp - 0x18], eax
jne 0x41588a
cmp word [edi + 4], 0x5c
je 0x41588a
or eax, 2
mov ecx, 0x3c
push eax
push edi
call fcn.0045fe50
push eax
jmp 0x415c1f
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x844]
push 0x8000
push edi
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
jne 0x4158b2
push dword [ebp - 0x18]
push edi
push str.GetFullPathName
jmp 0x415c1f
mov ecx, dword [esi + 0x844]
mov edx, ecx
call fcn.00464ef0
mov ecx, dword [esi + 0x844]
mov edx, ebx
mov dword [ebp - 0x24], 0xffffffff
call fcn.0045c7b0
mov eax, dword [esi + 0x8e4]
mov dword [esi + 0x8e8], 0xffffffff
cmp ebx, eax
je 0x415918
test eax, eax
je 0x4158fe
push eax
call fcn.00487954
add esp, 4
mov dword [esi + 0x8e4], 0
or edx, 0xffffffff
mov dword [esi + 0x8e8], 0xffffffff
mov ecx, ebx
call fcn.00412580
mov dword [esi + 0x8e4], eax
mov ecx, dword [esi + 0x844]
mov edx, ecx
call fcn.00464df0
push dword [esi + 0x844]
mov dword [esi + 0x85c], eax
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
mov edx, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edx
mov edi, 0x4c1430
cmp edx, 0xffffffff
je 0x415962
mov ecx, edx
and ecx, 0x410
cmp ecx, 0x10
jne 0x415962
lea ecx, [esi + 0x6a0]
jmp 0x41597f
mov eax, dword [esi + 0x6a0]
lea ecx, [esi + 0x6a0]
and eax, 0x1800
mov dword [ebp - 0x14], ecx
or eax, 0
je 0x415a03
mov eax, dword [ecx]
and eax, 0x1800
mov dword [ebp - 0x14], ecx
or eax, 0
je 0x415a03
mov eax, dword [esi + 0x8e4]
mov ecx, edi
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.004145f0
mov dword [esi + 0x8dc], eax
mov ecx, edi
mov eax, dword [esi + 0x8e4]
test eax, eax
cmovne ecx, eax
lea eax, [esi + 0x8c0]
push eax
push ecx
mov ecx, esi
call fcn.00414810
test byte [esi + 0x8dc], 5
mov dword [esi + 0x8bc], eax
je 0x4159e2
mov eax, dword [esi + 0x6e8]
mov ecx, dword [esi + 0x6ec]
jmp 0x4159ee
mov eax, dword [esi + 0x6f0]
mov ecx, dword [esi + 0x6f4]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x880], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x884], ecx
mov dword [ebp - 0x14], eax
cmp edx, 0xffffffff
je 0x415ace
test dl, 0x10
je 0x415ace
mov ecx, dword [esi + 0x844]
mov eax, ebx
mov edx, 0x7fff
movzx edi, word [ecx]
test di, di
je 0x415a38
mov word [eax], di
dec edx
add eax, 2
add ecx, 2
test edx, edx
jg 0x415a22
xor ecx, ecx
mov edx, ebx
mov word [eax], cx
mov ecx, dword [esi + 0x844]
push SysReAllocString
push 0x4c17a4
call fcn.00462880
add esp, 8
mov edi, 0x4c1430
test dword [ebp - 0x1c], 0x400
jne 0x415a9b
mov eax, dword [esi + 0x8e4]
mov edx, edi
mov ecx, dword [esi + 0x85c]
test eax, eax
mov dword [ebp - 0x1c], 2
cmovne edx, eax
xor eax, eax
cmp ecx, 7
cmove eax, dword [ebp - 0x1c]
add eax, edx
push eax
lea eax, [ebx + ecx*2]
push eax
call fcn.004958b1
add esp, 8
test eax, eax
je 0x415ace
mov edx, dword [esi + 0x844]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ab0
sub ecx, dword [ebp - 0x20]
sar ecx, 1
xor eax, eax
mov dword [ebp - 0x20], 1
mov word [edx + ecx*2 - 4], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0xffffffff
push eax
push ebx
push 0x8000
push dword [esi + 0x844]
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
je 0x415c07
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x415c07
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b10
sub ecx, edx
sar ecx, 1
mov dword [esi + 0x854], ecx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x415b34
mov eax, dword [ebp - 0x10]
xor edx, edx
mov word [eax], dx
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xffffffff
push ecx
push ebx
mov ecx, esi
call fcn.00416250
test eax, eax
je 0x415c26
mov eax, dword [esi + 0x8e4]
test eax, eax
cmovne edi, eax
mov eax, dword [esi + 0xb88]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax + edi*4]
mov dword [edi + 0x6c], 0xffffffff
test ecx, ecx
je 0x415b7c
cmp ecx, dword [edi + 0x68]
je 0x415bac
mov eax, dword [edi + 0x68]
test eax, eax
je 0x415b96
push eax
call fcn.00487954
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0xffffffff
test ecx, ecx
je 0x415bac
or edx, 0xffffffff
call fcn.00412580
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x1800
or eax, 0
je 0x415bf9
mov ecx, dword [esi + 0x844]
mov edx, dword [esi + 0x848]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x415bc7
mov ecx, dword [esi + 0x8d4]
mov eax, dword [esi + 0x6c0]
cmp eax, ecx
cmovb ecx, eax
mov eax, 0x40000
cmp ecx, eax
cmovb ecx, eax
mov dword [esi + 0x8d4], ecx
mov ecx, esi
call fcn.00414c20
mov esi, 1
jmp 0x415c28
mov ecx, dword [esi + 0x85c]
mov eax, dword [esi + 0x844]
push dword [ebp - 0x18]
lea eax, [eax + ecx*2]
push eax
push str.GetFullPathName3
mov ecx, esi
call fcn.0041a620
xor esi, esi
push ebx
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 4