Function at 0x10085590
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b4dde
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10247db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x130], esp
movzx eax, byte [ebp - 0xd5]
push eax
push str.test_
lea ecx, [ebp - 0x18]
call fcn.10086c30
mov ecx, eax
call fcn.10071900
push eax
mov ecx, esi
call fcn.100451a0
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x13c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10045370
mov byte [ebp - 4], 0
mov ecx, dword [0x10266cc8]
call fcn.100e59d0
mov byte [ebp - 0xc2], al
movzx eax, byte [ebp - 0xc2]
test eax, eax
je 0x10085691
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x101f0f0a
call fcn.100451a0
push 0
mov ecx, dword [ebp + 8]
call fcn.100851c0
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
jmp 0x10085bc8
movzx edx, byte [ebp - 0xd6]
push edx
push str.UIui.hdr
lea ecx, [ebp - 0x50]
call fcn.10086cf0
mov ecx, eax
call fcn.1004de90
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10049f10
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc0]
add eax, 4
push eax
mov ecx, dword [ebp - 0xfc]
call fcn.10044e70
push eax
call fcn.10085260
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.100450b0
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10085cf0
add esp, 8
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp + 0xc]
call fcn.1004eac0
lea ecx, [ebp - 0x88]
call fcn.100450b0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10045370
mov ecx, dword [ebp - 0xc0]
call fcn.100854b0
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x100857ca
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x101f0f1d
call fcn.100451a0
push 0
mov ecx, dword [ebp + 8]
call fcn.100851c0
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
jmp 0x10085bc8
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx - 4]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
ja 0x10085833
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x11c], esp
push 0x101f0f0b
call fcn.100451a0
push 0
mov ecx, dword [ebp + 8]
call fcn.100851c0
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
jmp 0x10085bc8
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.10040b60
add esp, 4
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x100858b0
mov ecx, dword [ebp - 0xe8]
push ecx
push 0
mov edx, dword [ebp - 0xcc]
push edx
call fcn.1015cb20
add esp, 0xc
cmp dword [ebp - 0xcc], 0
je 0x10085898
mov eax, dword [ebp - 0xcc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xec], ecx
jmp 0x100858a2
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
jmp 0x100858ba
mov dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, 1
imul ecx, eax, 0
add ecx, dword [ebp - 0xf4]
push ecx
call fcn.1015c3c0
add esp, 0xc
mov edx, dword [ebp - 0xd0]
add edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
push ecx
call fcn.10173f80
add esp, 4
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.10086220
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.10052110
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x114]
call fcn.10051e90
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0x15c]
call fcn.10051230
movzx eax, byte [ebp - 0xc1]
test eax, eax
je 0x100859da
lea ecx, [ebp - 0x114]
call fcn.10051e70
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10085c10
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10051230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
jmp 0x10085bc8
push 0x40
push 0x1000
mov edx, dword [ebp - 0xe0]
add edx, 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x10085b6d
push 0
push 0x80
push 3
push 0
push 1
push 1
push str.UIui.src
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
je 0x10085b6d
push 0
push 0
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10085b60
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xe4]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
mov edx, dword [ebp - 0xf4]
push edx
call fcn.100451a0
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x44]
call fcn.100851c0
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0xb8]
call fcn.10086e20
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.10086e60
lea ecx, [ebp - 0x16c]
call fcn.10085c80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.10085c60
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
call fcn.10085ca0
mov eax, dword [ebp - 0xbc]
or eax, 1
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.10085bf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10051230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
jmp 0x10085bc8
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x101f0f1e
call fcn.100451a0
push 0
mov ecx, dword [ebp + 8]
call fcn.100851c0
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0xbc]
or edx, 1
mov dword [ebp - 0xbc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10051230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100450b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10159b70
mov esp, ebp
pop ebp
ret 0x20