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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ab50e
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10226180]
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.1004b650
mov ecx, eax
call fcn.1001d290
push eax
mov ecx, esi
call fcn.10008f80
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.10009070
mov byte [ebp - 4], 0
mov ecx, dword [0x10229c40]
call fcn.100c8500
mov byte [ebp - 0xc2], al
movzx eax, byte [ebp - 0xc2]
test eax, eax
je 0x100557e2
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x101d0f3e
call fcn.10008f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10055310
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.10008ea0
nop
mov eax, dword [ebp + 8]
jmp 0x10055d22
movzx edx, byte [ebp - 0xd6]
push edx
push str.UIui.hdr
lea ecx, [ebp - 0x50]
call fcn.10056e00
mov ecx, eax
call fcn.100112e0
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.1000d2a0
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.10008c60
push eax
call fcn.100553b0
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10008ea0
nop
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10055e40
add esp, 8
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp + 0xc]
call fcn.10012020
lea ecx, [ebp - 0x88]
call fcn.10008ea0
nop
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.10009070
mov ecx, dword [ebp - 0xc0]
call fcn.10055600
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x1005591e
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x101d0f42
call fcn.10008f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10055310
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.10008ea0
nop
mov eax, dword [ebp + 8]
jmp 0x10055d22
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx - 4]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
ja 0x10055988
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x11c], esp
push 0x101d0f3f
call fcn.10008f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10055310
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.10008ea0
nop
mov eax, dword [ebp + 8]
jmp 0x10055d22
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.10004c30
add esp, 4
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x10055a05
mov ecx, dword [ebp - 0xe8]
push ecx
push 0
mov edx, dword [ebp - 0xcc]
push edx
call fcn.10153ba0
add esp, 0xc
cmp dword [ebp - 0xcc], 0
je 0x100559ed
mov eax, dword [ebp - 0xcc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xec], ecx
jmp 0x100559f7
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
jmp 0x10055a0f
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.10153440
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.10170a70
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.10056400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0xc0]
add ecx, 0x24
call fcn.10015630
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x114]
call fcn.10015490
mov byte [ebp - 0xc1], al
lea ecx, [ebp - 0x15c]
call fcn.10014780
movzx eax, byte [ebp - 0xc1]
test eax, eax
je 0x10055b2f
lea ecx, [ebp - 0x114]
call fcn.10015470
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10055db0
mov ecx, dword [ebp - 0xbc]
or ecx, 1
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10014780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008ea0
mov eax, dword [ebp + 8]
jmp 0x10055d22
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 0x10055cc6
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 0x10055cc6
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]
nop
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 0x10055cb8
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
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.10008f80
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x44]
call fcn.10055310
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.10056f30
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.10056f60
lea ecx, [ebp - 0x16c]
call fcn.10055e20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.10055e00
nop
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
call fcn.10055d60
mov eax, dword [ebp - 0xbc]
or eax, 1
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.10055d40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.10014780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008ea0
mov eax, dword [ebp + 8]
jmp 0x10055d22
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push 0
push 0
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x101d0f43
call fcn.10008f80
push 0
mov ecx, dword [ebp + 8]
call fcn.10055310
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.10014780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10008ea0
nop
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.10150c60
mov esp, ebp
pop ebp
ret 0x20