Function at 0x4159f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e8eb
push eax
mov eax, 0x2164
mov dword fs:[0], esp
call fcn.0041ae80
push ebx
mov ebx, dword [esp + 0x2180]
push ebp
push esi
xor ebp, ebp
mov esi, ecx
cmp ebx, ebp
mov dword [esp + 0x20], esi
jne 0x415a2c
xor eax, eax
jmp 0x415c98
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], eax
or eax, ecx
mov dword [esp + 0x10], ecx
jne 0x415a91
cmp dword [0x4256f0], 1
jne 0x415a65
lea eax, [esp + 0x3c]
lea ecx, [esi + 0x1018]
push eax
push ecx
call sub.MSVCRT.dll__stati64
add esp, 8
test eax, eax
je 0x415a81
xor eax, eax
jmp 0x415c98
lea edx, [esp + 0x3c]
lea eax, [esi + 0x18]
push edx
push eax
call sub.MSVCRT.dll__wstati64
add esp, 8
test eax, eax
je 0x415a81
xor eax, eax
jmp 0x415c98
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x2194]
push edi
lea ecx, [esp + 0x1174]
push eax
push ecx
mov dword [esp + 0x24], ebp
call sub.MSVCRT.dll_wcscpy
lea edi, [esi + 0x18]
lea edx, [esp + 0x17c]
push edi
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 0x10
lea eax, [esp + 0x174]
mov ecx, esi
push eax
call fcn.0040f6e0
lea ecx, [esp + 0x174]
lea edx, [esp + 0x1174]
push ecx
push edx
call sub.MSVCRT.dll_wcscat
mov edx, dword [0x4256f0]
add esp, 8
xor eax, eax
cmp edx, 1
sete al
push eax
lea ecx, [esp + 0x30]
call fcn.00401f60
lea ecx, [esp + 0x1174]
mov dword [esp + 0x217c], ebp
push ecx
push SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00401fb0
cmp eax, 1
jne 0x415c7f
lea edx, [esp + 0x18]
mov ebp, 0x428
push edx
push 0x423d9c
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebp
call fcn.00402230
mov esi, eax
test esi, esi
je 0x415c76
cmp dword [esp + 0x18], ebp
jne 0x415c6d
mov ebp, dword [esp + 0x2184]
push 0
push 0
push 0xc64
push ebp
call fcn.00407150
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], 0
push 0
push eax
push 4
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x20]
push esi
push edi
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x415c6d
mov eax, dword [esi + 0x208]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x20c]
cmp eax, edx
jne 0x415c6d
cmp ecx, dword [esp + 0x14]
jne 0x415c6d
cmp dword [esi + 0x420], ebp
jne 0x415c6d
mov edi, dword [esp + 0x2194]
mov dword [ebx], eax
mov eax, dword [esp + 0x2188]
mov dword [ebx + 4], ecx
mov edx, dword [esi + 0x210]
mov dword [eax], edx
mov ecx, dword [esi + 0x214]
lea edx, [esi + 0x218]
mov dword [eax + 4], ecx
push edx
push edi
call sub.MSVCRT.dll_wcscpy
mov eax, dword [0x4256f0]
mov ebx, 1
add esp, 8
cmp eax, ebx
jne 0x415c3c
push 0
push 0
lea eax, [esp + 0x78]
push 0x104
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
push ecx
push edx
call sub.MSVCRT.dll__stati64
jmp 0x415c47
lea eax, [esp + 0x40]
push eax
push edi
call sub.MSVCRT.dll__wstati64
add esp, 8
test eax, eax
jne 0x415c6d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2190]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [ecx + 0x1a2c], ebx
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00402080
lea ecx, [esp + 0x2c]
mov dword [esp + 0x217c], 0xffffffff
call fcn.00401fa0
mov eax, dword [esp + 0x1c]
pop edi
mov ecx, dword [esp + 0x2170]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2170
ret 0x18