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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b8d0e
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x1024bdac]
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.10086a10
mov ecx, eax
call fcn.10074940
push eax
mov ecx, esi
call fcn.10045f80
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.10046070
mov byte [ebp - 4], 0
mov ecx, dword [0x10251b9c]
call fcn.100e5570
mov byte [ebp - 0xc2], al
movzx eax, byte [ebp - 0xc2]
test eax, eax
je 0x100853a1
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x101f470b
call fcn.10045f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10084ed0
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.10045ea0
mov eax, dword [ebp + 8]
jmp 0x100858d8
movzx edx, byte [ebp - 0xd6]
push edx
push str.UIui.hdr
lea ecx, [ebp - 0x50]
call fcn.10086ad0
mov ecx, eax
call fcn.1004fc80
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.1004bd80
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.10045c30
push eax
call fcn.10084f70
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10045ea0
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10085a00
add esp, 8
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp + 0xc]
call fcn.100508b0
lea ecx, [ebp - 0x88]
call fcn.10045ea0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10046070
mov ecx, dword [ebp - 0xc0]
call fcn.100851c0
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x100854da
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x101f471d
call fcn.10045f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10084ed0
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.10045ea0
mov eax, dword [ebp + 8]
jmp 0x100858d8
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx - 4]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
ja 0x10085543
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x11c], esp
push 0x101f471e
call fcn.10045f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10084ed0
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.10045ea0
mov eax, dword [ebp + 8]
jmp 0x100858d8
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.10041b20
add esp, 4
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x100855c0
mov ecx, dword [ebp - 0xe8]
push ecx
push 0
mov edx, dword [ebp - 0xcc]
push edx
call fcn.10157e80
add esp, 0xc
cmp dword [ebp - 0xcc], 0
je 0x100855a8
mov eax, dword [ebp - 0xcc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xec], ecx
jmp 0x100855b2
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
jmp 0x100855ca
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.10157720
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.10175100
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.10085fb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.10053e50
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x114]
call fcn.10053cb0
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0x15c]
call fcn.10053000
movzx eax, byte [ebp - 0xc1]
test eax, eax
je 0x100856ea
lea ecx, [ebp - 0x114]
call fcn.10053c90
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10085970
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10053000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10045ea0
mov eax, dword [ebp + 8]
jmp 0x100858d8
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 0x1008587d
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 0x1008587d
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 0x10085870
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.10045f80
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x44]
call fcn.10084ed0
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.10086c00
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.10086c30
lea ecx, [ebp - 0x16c]
call fcn.100859e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.100859c0
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
call fcn.10085920
mov eax, dword [ebp - 0xbc]
or eax, 1
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.10085900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10053000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10045ea0
mov eax, dword [ebp + 8]
jmp 0x100858d8
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 0x101f472d
call fcn.10045f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10084ed0
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.10053000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10045ea0
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.10154eb0
mov esp, ebp
pop ebp
ret 0x20