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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ade1e
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10245db0]
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.100848b0
mov ecx, eax
call fcn.10072410
push eax
mov ecx, esi
call fcn.100450b0
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.10045280
mov byte [ebp - 4], 0
mov ecx, dword [0x1024ca04]
call fcn.100def60
mov byte [ebp - 0xc2], al
movzx eax, byte [ebp - 0xc2]
test eax, eax
je 0x10083311
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x101e92fe
call fcn.100450b0
push 0
mov ecx, dword [ebp + 8]
call fcn.10082e40
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.10044fc0
mov eax, dword [ebp + 8]
jmp 0x10083848
movzx edx, byte [ebp - 0xd6]
push edx
push str.UIui.hdr
lea ecx, [ebp - 0x50]
call fcn.10084970
mov ecx, eax
call fcn.1004d040
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10049750
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.10044d80
push eax
call fcn.10082ee0
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10044fc0
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10083970
add esp, 8
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp + 0xc]
call fcn.1004dd80
lea ecx, [ebp - 0x88]
call fcn.10044fc0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10045280
mov ecx, dword [ebp - 0xc0]
call fcn.10083130
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x1008344a
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x101e930d
call fcn.100450b0
push 0
mov ecx, dword [ebp + 8]
call fcn.10082e40
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.10044fc0
mov eax, dword [ebp + 8]
jmp 0x10083848
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx - 4]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
ja 0x100834b3
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x11c], esp
push 0x101e92ff
call fcn.100450b0
push 0
mov ecx, dword [ebp + 8]
call fcn.10082e40
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.10044fc0
mov eax, dword [ebp + 8]
jmp 0x10083848
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.10040bc0
add esp, 4
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x10083530
mov ecx, dword [ebp - 0xe8]
push ecx
push 0
mov edx, dword [ebp - 0xcc]
push edx
call fcn.101571d0
add esp, 0xc
cmp dword [ebp - 0xcc], 0
je 0x10083518
mov eax, dword [ebp - 0xcc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xec], ecx
jmp 0x10083522
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
jmp 0x1008353a
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.10156a70
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.1016d000
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.10083ea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.100513d0
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x114]
call fcn.10051150
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0x15c]
call fcn.100504f0
movzx eax, byte [ebp - 0xc1]
test eax, eax
je 0x1008365a
lea ecx, [ebp - 0x114]
call fcn.10051130
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10083890
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.100504f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10044fc0
mov eax, dword [ebp + 8]
jmp 0x10083848
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 0x100837ed
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 0x100837ed
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 0x100837e0
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.100450b0
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x44]
call fcn.10082e40
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.10084aa0
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.10084ae0
lea ecx, [ebp - 0x16c]
call fcn.10083900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.100838e0
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
call fcn.10083920
mov eax, dword [ebp - 0xbc]
or eax, 1
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.10083870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.100504f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10044fc0
mov eax, dword [ebp + 8]
jmp 0x10083848
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 0x101e930e
call fcn.100450b0
push 0
mov ecx, dword [ebp + 8]
call fcn.10082e40
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.100504f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10044fc0
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.10154220
mov esp, ebp
pop ebp
ret 0x20