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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e02e6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x13c], edi
jne 0x413a41
mov eax, dword [esi + 8]
sub esp, 0x10
lea ebx, [eax + 4]
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.0040e650
mov dword [ebp - 4], 0
cmp dword [ebp - 0x130], 2
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x12c]
jb 0x413b1e
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 6], 0x3a
je 0x413aac
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 4], 0x5c
jne 0x413b1e
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 6], 0x5c
jne 0x413b1e
call fcn.00431340
test al, al
jne 0x413ae9
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x18], 0
jne 0x413ae5
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x413ae5
push eax
call fcn.00496f41
add esp, 4
xor bl, bl
jmp 0x413b48
mov ecx, ebx
call fcn.00431610
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test eax, eax
je 0x413ac6
cmp byte [ebp - 0x18], 0
jne 0x413b46
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x413b46
push eax
jmp 0x413b3e
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test dl, dl
jne 0x413b46
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x413b46
push ecx
call fcn.00496f41
add esp, 4
mov bl, 1
mov ecx, esi
call fcn.0040efb0
test al, al
je 0x413b5a
mov al, 1
jmp 0x413c7a
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x413b69
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413c04
shr eax, 4
not al
and al, 1
je 0x413c04
test bl, bl
je 0x413b53
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x413b98
mov eax, dword [esi + 8]
add eax, 4
push eax
call fcn.004362c0
mov edi, eax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x413baf
mov dword [eax], edi
test edi, edi
je 0x413b53
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x413bc2
mov ebx, dword [esi + 8]
mov ecx, dword [ebp - 0x138]
push 0x4fdb08
call fcn.004058b0
push edi
mov esi, eax
push 0x4fc454
push esi
call fcn.004048f0
push 0x4fdb18
push 0x4fc47c
push esi
call fcn.004048f0
lea eax, [ebx + 4]
push eax
push 0x4fc47c
push esi
call fcn.004048f0
add esp, 0x24
jmp 0x413c78
test edi, edi
je 0x413c0e
mov dword [edi], 1
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x413c1d
mov eax, dword [esi + 8]
sub esp, 0x10
lea ecx, [ebp - 0x134]
add eax, 4
push 0
push eax
call fcn.0040e650
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push str.b_rN0R
mov dword [ebp - 4], 1
call fcn.0040e240
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x413c78
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x413c78
push eax
call fcn.00496f41
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489940
mov esp, ebp
pop ebp
ret 8