Function at 0x412e90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f68b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a8f00]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0x1ff
lea edx, [ebp - 0x20f]
push ebx
push edx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
mov byte [ebp - 0x210], bl
call fcn.005282b0
add esp, 0xc
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, eax
xor eax, eax
mov dword [ebp - 0x214], eax
cmp edi, ebx
je 0x412f5e
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x412f58
mov dword [ebp - 0x230], ebx
jmp 0x412fc8
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
cmp eax, ebx
je 0x412fc8
push 0x5826f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
cmp eax, ebx
je 0x412f9f
push str.Wow64DisableWow64FsRedirection
push eax
call esi
mov ecx, dword [ebp - 0x21c]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [ebp - 0x22c], eax
call esi
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x220], ebx
jne 0x412fc8
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x412fc8
lea edx, [ebp - 0x224]
push edx
call eax
test eax, eax
je 0x412fc8
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x234]
push 0x5805dc
push eax
call fcn.0052560a
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x412fe9
xor esi, esi
jmp 0x4130a8
mov ecx, dword [ebp - 0x238]
push 0x581654
push ecx
call fcn.0052560a
add esp, 8
mov dword [ebp - 0x214], eax
push edi
cmp eax, ebx
jne 0x41301b
call fcn.00524eef
add esp, 4
mov dword [ebp - 0x218], ebx
jmp 0x4130a2
push 0x200
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.005258b2
mov esi, eax
add esp, 0x10
cmp esi, ebx
jbe 0x41308d
mov eax, dword [ebp - 0x214]
push eax
push esi
lea ecx, [ebp - 0x210]
push 1
push ecx
call fcn.0052497b
add esp, 0x10
push edi
cmp esi, eax
jne 0x413073
push 0x200
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.005258b2
mov esi, eax
add esp, 0x10
cmp esi, ebx
ja 0x413037
jmp 0x41308d
call fcn.00524eef
mov eax, dword [ebp - 0x214]
push eax
call fcn.00524eef
add esp, 8
mov dword [ebp - 0x218], ebx
push edi
call fcn.00524eef
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00524eef
add esp, 8
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x230], ebx
je 0x4130d5
cmp dword [ebp - 0x220], ebx
je 0x4130d5
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x4130d5
mov edx, dword [ebp - 0x224]
push edx
call eax
test eax, eax
je 0x4130d5
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4130e6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
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.00523079
mov esp, ebp
pop ebp
ret 4