Function at 0x100224a0
Capabilities:
Create thread
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70c
mov eax, dword [0x10028014]
xor eax, esp
mov dword [esp + 0x708], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
and dword [esp + 0x20], ebx
xor esi, esi
and dword [esp + 0x1c], ebx
push ecx
mov dword [esp + 0x2c], eax
xor eax, eax
push ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x1c], eax
call fcn.1002352a
push ecx
push ecx
lea ecx, [esp + 0x6c]
call fcn.1002352a
push ecx
push ecx
lea ecx, [esp + 0x88]
call fcn.1002352a
push ecx
push 0x100
lea ecx, [esp + 0x6c]
call fcn.10023615
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], 0x100015e4
mov dword [esp + 0x4c], 0x400
test eax, eax
je 0x10022537
push eax
lea ecx, [esp + 0x4c]
call fcn.10021efb
xor ecx, ecx
jmp 0x10022541
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push ecx
push ecx
push 0x100085f4
lea ecx, [esp + 0x58]
call fcn.10021f87
test eax, eax
je 0x10022a78
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x10008600
lea ecx, [esp + 0x58]
call fcn.10021f87
test eax, eax
je 0x10022a78
and dword [esp + 0x2c], ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x14], 0x10
push eax
push 0
mov esi, 0x10008604
lea ecx, [esp + 0x54]
push esi
call fcn.10021f87
test eax, eax
jns 0x100225c0
push esi
push 4
push edi
call fcn.100221e5
add esp, 0xc
jmp 0x10022ae3
jne 0x100225d6
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xb8]
call fcn.10024bcd
test eax, eax
je 0x100225af
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea ebx, [esp + 0xfc]
mov eax, ebx
mov dword [esp + 0x20], ebx
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.100220a7
push 2
pop edx
cmp eax, 0x8007007a
jne 0x10022657
mov esi, dword [esp + 0x10]
xor ecx, ecx
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100267f0
mov ebx, eax
mov dword [esp + 0x20], ebx
pop ecx
test ebx, ebx
jne 0x10022636
push 2
push edi
call fcn.100221e5
pop ecx
jmp 0x10022ae2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push ebx
push ecx
lea ecx, [esp + 0x54]
call fcn.100220a7
test eax, eax
je 0x1002265b
push ebx
call fcn.100267eb
pop ecx
jmp 0x10022628
test eax, eax
jne 0x100226d3
push 0x1c
call fcn.100267f0
pop ecx
test eax, eax
je 0x1002267a
push dword [esp + 0x2c]
mov ecx, eax
call fcn.10024458
mov esi, eax
mov dword [esp + 0x20], eax
jmp 0x10022680
xor esi, esi
mov dword [esp + 0x20], esi
test esi, esi
jne 0x10022693
push 2
push edi
call fcn.100221e5
pop ecx
pop ecx
jmp 0x10022acd
sub esp, 0xc
mov ecx, esi
push 0
push 2
push 0x40000000
push ebx
call fcn.100244e3
test eax, eax
jne 0x100226bc
push ebx
push 3
push edi
call fcn.100221e5
add esp, 0xc
jmp 0x10022ab3
push 0
lea eax, [esp + 0x64]
push eax
push 2
push 0x100095fc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [esp + 0x58], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xdc]
mov dword [esp + 0x14], 0x10
push eax
push 0
mov esi, 0x10009538
lea ecx, [esp + 0x54]
push esi
call fcn.10021f87
test eax, eax
jns 0x10022707
push esi
push 4
jmp 0x100226ae
jne 0x1002274b
mov eax, dword [0x10002920]
mov esi, 0x10002920
jmp 0x10022739
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xe4]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x10022744
add esi, 8
mov eax, dword [esi]
test eax, eax
jne 0x10022715
push 0x10009538
jmp 0x10022703
mov eax, dword [esi + 4]
mov dword [esp + 0x58], eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.1002210c
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10022769
mov ecx, edi
call fcn.10022180
jmp 0x10022ab3
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push ebx
push edi
push 0x10022420
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x10009558
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov ecx, ebx
mov dword [0x1002844c], eax
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x28], ecx
jle 0x10022921
lea eax, [esp + 0x10]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x304]
mov dword [esp + 0x14], 0x208
push eax
push ecx
push 0x10009548
lea ecx, [esp + 0x58]
call fcn.10021f87
test eax, eax
js 0x10022a4b
jne 0x10022905
or dword [esp + 0x40], 0xffffffff
lea eax, [esp + 0x30]
push eax
push 0x3a
push dword [esp + 0x18]
lea eax, [esp + 0x30c]
mov dword [esp + 0x48], 0x100015bc
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x54], 0x400
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.10020ba2
mov esi, eax
test esi, esi
je 0x10022a4b
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.1002366d
test eax, eax
je 0x10022a4b
push 0x1c
add esi, 2
call fcn.100267f0
pop ecx
test eax, eax
je 0x10022858
push dword [esp + 0x2c]
mov ecx, eax
call fcn.10024458
mov ebx, eax
test ebx, ebx
je 0x10022a24
sub esp, 0xc
mov ecx, ebx
push 1
push 3
push SysReAllocString
push esi
call fcn.100244e3
test eax, eax
je 0x10022a04
push 0xc
call fcn.100267f0
mov esi, eax
pop ecx
test esi, esi
je 0x1002289c
mov eax, dword [esp + 0x20]
mov dword [esi], 0x400
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x1002289e
xor esi, esi
test esi, esi
je 0x100229dd
and dword [esp + 0x10], 0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x6c]
call fcn.10022b95
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x100229a0
push esi
call fcn.100267eb
mov eax, dword [ebx]
pop ecx
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, ebx
call esi
mov dword [esp + 0x3c], 0x100015bc
xor ebx, ebx
mov ecx, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, dword [esp + 0x28]
jl 0x100227a5
mov eax, dword [0x1002844c]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10022932
push ebx
push ebx
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x40040
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], 0x32
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.10024fda
push eax
lea ecx, [esp + 0x44]
call fcn.10009f1f
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x38], 0
je 0x10022983
push dword [esp + 0x38]
call fcn.100267eb
pop ecx
xor esi, esi
cmp dword [esp + 0x44], esi
je 0x10022a7f
push dword [esp + 0x44]
call fcn.100267eb
pop ecx
xor ebx, ebx
jmp 0x10022a74
cmp dword [esp + 0x14], 0
je 0x100229bf
push 0
push 0
push dword [0x1002844c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esp + 0x24]
cmp ecx, 5
jne 0x100229da
push dword [esp + 0x10]
push dword [ebx + 0x18]
push ecx
push edi
call fcn.100221e5
add esp, 0x10
jmp 0x10022a7f
push ecx
jmp 0x100229fa
cmp dword [esp + 0x14], 0
je 0x100229f8
push 0
push 0
push dword [0x1002844c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 2
push edi
call fcn.100221e5
pop ecx
pop ecx
jmp 0x10022a7f
cmp dword [esp + 0x14], 0
je 0x10022a1f
push 0
push 0
push dword [0x1002844c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
push 3
jmp 0x10022a6b
cmp dword [esp + 0x14], 0
je 0x10022a3f
push 0
push 0
push dword [0x1002844c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 2
push edi
call fcn.100221e5
pop ecx
pop ecx
jmp 0x10022a74
cmp dword [esp + 0x14], 0
je 0x10022a64
push ebx
push ebx
push dword [0x1002844c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x10009548
push 4
push edi
call fcn.100221e5
add esp, 0xc
xor esi, esi
jmp 0x10022a7f
mov ecx, edi
call fcn.10022180
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10022a8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10022a99
push esi
call fcn.100267eb
pop ecx
test ebx, ebx
je 0x10022aaf
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, ebx
call esi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10022acd
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
test ebx, ebx
je 0x10022ae3
lea eax, [esp + 0xf8]
cmp ebx, eax
je 0x10022ae3
push ebx
call fcn.100267eb
pop ecx
lea ecx, [esp + 0x48]
call fcn.10021f71
lea ecx, [esp + 0x80]
call fcn.10023551
lea ecx, [esp + 0x64]
call fcn.10023551
lea ecx, [esp + 0x9c]
call fcn.10023551
mov ecx, dword [esp + 0x714]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10026d70
mov esp, ebp
pop ebp
ret 0x10