Function at 0x10001169
Capabilities:
Create thread
Enumerate gui resources
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x488
mov eax, dword [0x100d92b4]
xor eax, esp
mov dword [esp + 0x484], eax
cmp byte [0x100daa24], 0
push esi
push edi
jne 0x10001669
xor eax, eax
mov byte [0x100daa24], 1
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
push ecx
push 0x1000
lea ecx, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.10001736
call fcn.10004d30
mov esi, eax
push edi
push 0x100d6c90
push esi
mov dword [esi], 0x3a
call fcn.10005050
add esp, 0xc
test eax, eax
je 0x100011ee
push esi
call fcn.10005010
pop ecx
push edi
push esi
call fcn.10006730
pop ecx
pop ecx
test eax, eax
je 0x10001202
push esi
call fcn.10005010
pop ecx
push esi
call fcn.10005010
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
mov dword [esp], 0x1000
cmovae eax, dword [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x28], 8
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x24]
cmovae edx, dword [esp + 0x14]
test eax, eax
je 0x1000125e
dec eax
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
pop eax
lea esi, [edx + ecx*2]
jmp 0x10001253
cmp esi, edx
je 0x1000125e
sub esi, 2
cmp word [esi], ax
jne 0x1000124c
sub esi, edx
sar esi, 1
jmp 0x10001261
or esi, 0xffffffff
push 1
call fcn.10057060
pop ecx
lea ecx, [esp + 0x438]
push ecx
push edi
push eax
push 0x10001c62
push edi
push edi
call fcn.1005afdc
add esp, 0x18
mov dword [esp + 0x434], eax
test eax, eax
je 0x10001689
cmp dword [esp + 0x438], edi
je 0x10001685
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esp + 0x438], eax
je 0x10001681
push edi
push dword [esp + 0x43c]
push dword [esp + 0x43c]
call fcn.10056ea4
add esp, 0xc
test eax, eax
jne 0x1000167d
push 1
mov dword [esp + 0x438], edi
mov dword [esp + 0x43c], edi
call fcn.10057060
pop ecx
lea ecx, [esp + 0x448]
push ecx
push edi
push eax
push 0x10001c62
push edi
push edi
call fcn.1005afdc
add esp, 0x18
mov dword [esp + 0x444], eax
test eax, eax
je 0x1000169c
cmp dword [esp + 0x448], edi
je 0x10001685
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esp + 0x448], eax
je 0x10001681
push edi
push dword [esp + 0x44c]
push dword [esp + 0x44c]
call fcn.10056ea4
add esp, 0xc
test eax, eax
jne 0x1000167d
mov dword [esp + 0x444], edi
mov dword [esp + 0x448], edi
cmp dword [esp + 0x438], edi
jne 0x10001692
lea edi, [esp + 0x454]
stosd dword es:[edi], eax
lea ecx, [esp + 0x454]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x14]
and dword [esp + 0x464], 0
and dword [esp + 0x468], 0
cmp dword [esp + 0x24], esi
cmovb esi, dword [esp + 0x24]
cmp dword [esp + 0x28], 8
push esi
cmovae eax, dword [esp + 0x18]
push eax
call fcn.10001941
lea ecx, [esp + 0x14]
call fcn.10001708
push 6
pop ecx
lea esi, [esp + 0x454]
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.aspose.dll
call esi
xor edi, edi
mov eax, 0x7ffffffe
sub eax, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
cmp eax, 1
jb 0x10001697
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 1
cmovae eax, dword [esp + 0x18]
push ecx
push dword [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x448]
lea ecx, [esp + 0x46c]
call fcn.10001ae8
push ecx
lea edx, [esp + 0x458]
lea ecx, [esp + 0x3c]
call fcn.100017e1
pop ecx
lea ecx, [esp + 0x454]
call fcn.10001708
push ecx
lea ecx, [esp + 0x30]
call fcn.100016b5
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
push 0x100d6c98
cmovae eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x43c]
mov dword [esp + 0x43c], edi
push eax
call fcn.1005abe6
add esp, 0xc
push edi
push 0x2864d
push dword [esp + 0x43c]
call fcn.1005b356
add esp, 0xc
push dword [esp + 0x434]
push 0x262c
push 1
push dword [esp + 0x38]
call fcn.1005b5a5
push dword [esp + 0x444]
call fcn.1005ae50
add esp, 0x14
push str.WinIMergeLib.dll
call esi
push 0x262c
push edi
lea esi, [eax + 0x1000]
push esi
call fcn.10058d80
mov edi, dword [esp + 0x38]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x434], eax
lea edx, [eax + edi]
movzx eax, al
imul ecx, eax, 0x52
mov eax, dword [esp + 0x434]
movzx eax, al
add cl, 0x3c
movzx ecx, cl
imul ecx, eax
mov al, 0xcf
sub al, cl
add byte [edx], al
mov eax, dword [esp + 0x434]
inc eax
mov dword [esp + 0x434], eax
cmp eax, 0x262c
jb 0x100014e2
push 0x21
pop eax
mov word [esp + 0x46c], ax
lea edi, [esp + 0x46e]
xor eax, eax
mov dword [esp + 0x434], 0x20100
stosd dword es:[edi], eax
xor ecx, ecx
push ecx
mov dword [esp + 0x43c], 0x60004
mov dword [esp + 0x440], 0xa0908
stosd dword es:[edi], eax
mov dword [esp + 0x444], 0xe0d0c
mov dword [esp + 0x448], 0xc0d000f
mov dword [esp + 0x44c], 0x9000b
stosd dword es:[edi], eax
mov dword [esp + 0x450], 0x50000
mov dword [esp + 0x454], 0x203
stosw word es:[edi], ax
lea eax, [esp + 0x448]
push eax
push 0x10
pop edi
push edi
lea eax, [esp + 0x440]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10003e00
add esp, 0x14
lea eax, [esp + 0x46c]
push edi
push eax
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10001d60
push 1
lea eax, [esp + 0x458]
push eax
push edi
lea eax, [esp + 0x450]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10003e00
add esp, 0x24
lea eax, [esp + 0x47c]
push edi
push eax
lea eax, [esp + 0x45c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10001c90
push 0x262c
push dword [esp + 0x40]
push esi
call fcn.10058800
add esp, 0x1c
xor edi, edi
push edi
push esi
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0x38]
call fcn.10001708
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1000164d
mov eax, dword [esp + 0x34]
sub eax, ecx
push eax
push ecx
call fcn.10001a6a
pop ecx
pop ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x10001669
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x18]
call fcn.10001a6a
pop ecx
pop ecx
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
xor ecx, esp
call fcn.10057052
mov esp, ebp
pop ebp
ret
push 2
jmp 0x100016a5
push 5
jmp 0x100016a5
push 1
jmp 0x100016a5
mov dword [esp + 0x438], edi
jmp 0x100016a3
call fcn.1005b390
call fcn.10001127
mov dword [esp + 0x448], edi
push 6
call fcn.10056c0c
int3