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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55032b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a9f00]
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.00528f50
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 0x412f1e
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x412f18
mov dword [ebp - 0x230], ebx
jmp 0x412f88
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
cmp eax, ebx
je 0x412f88
push 0x58382c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
cmp eax, ebx
je 0x412f5f
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 0x412f88
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x412f88
lea edx, [ebp - 0x224]
push edx
call eax
test eax, eax
je 0x412f88
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x234]
push 0x5815fc
push eax
call fcn.005262aa
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x412fa9
xor esi, esi
jmp 0x413068
mov ecx, dword [ebp - 0x238]
push 0x58266c
push ecx
call fcn.005262aa
add esp, 8
mov dword [ebp - 0x214], eax
push edi
cmp eax, ebx
jne 0x412fdb
call fcn.00525b8f
add esp, 4
mov dword [ebp - 0x218], ebx
jmp 0x413062
push 0x200
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.00526552
mov esi, eax
add esp, 0x10
cmp esi, ebx
jbe 0x41304d
mov eax, dword [ebp - 0x214]
push eax
push esi
lea ecx, [ebp - 0x210]
push 1
push ecx
call fcn.0052561b
add esp, 0x10
push edi
cmp esi, eax
jne 0x413033
push 0x200
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.00526552
mov esi, eax
add esp, 0x10
cmp esi, ebx
ja 0x412ff7
jmp 0x41304d
call fcn.00525b8f
mov eax, dword [ebp - 0x214]
push eax
call fcn.00525b8f
add esp, 8
mov dword [ebp - 0x218], ebx
push edi
call fcn.00525b8f
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00525b8f
add esp, 8
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x230], ebx
je 0x413095
cmp dword [ebp - 0x220], ebx
je 0x413095
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x413095
mov edx, dword [ebp - 0x224]
push edx
call eax
test eax, eax
je 0x413095
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4130a6
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.00523d1e
mov esp, ebp
pop ebp
ret 4