Function at 0x10022260
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10178549
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101ce2f4]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2f4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
mov ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov edi, 1
mov dword [esp + 0x64], edi
mov edx, dword [esp + 0x50]
mov byte [edx], 0
mov dword [esp + 0x64], 2
test ecx, ecx
cmp dword [esp + 0x80], 0
jg 0x10022313
push eax
mov ecx, ebx
call fcn.1000cf30
mov dword [esp + 0x38], edi
mov byte [esp + 0x64], 0
lea ecx, [esp + 0x40]
call fcn.10006e20
mov eax, ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1011717a
add esp, 0x54
ret
lea ecx, [esp + 0x18]
call fcn.10108ebb
mov byte [esp + 0x64], 3
mov cl, cl
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10182548
push esi
call fcn.10060340
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x3c], ebp
test edi, edi
test ebp, ebp
jne 0x10022364
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
call fcn.1000cf30
mov dword [esp + 0x38], edi
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10109203
jmp 0x100222e4
lea eax, [ebp*4]
push eax
call fcn.10116bdc
add esp, 4
mov esi, eax
test eax, eax
test esi, esi
jne 0x10022383
lea ecx, [esp + 0x40]
push ecx
jmp 0x10022349
mov edx, ebp
imul edx, edx, 0x510
push edx
call fcn.10116bdc
add esp, 4
mov dword [esp + 0x30], eax
test edx, edx
test eax, eax
jne 0x100223b0
push esi
call fcn.10116c9f
add esp, 4
mov cl, cl
lea eax, [esp + 0x40]
push eax
jmp 0x10022349
mov al, al
xor edi, edi
test ebp, ebp
jle 0x100223ec
mov ebx, eax
lea ebx, [ebx]
mov dword [esi + edi*4], 0
test edi, edi
push 0x510
push 0
push ebx
call fcn.101182b0
add esp, 0xc
mov bl, bl
add edi, 1
add ebx, 0x510
cmp edi, ebp
jl 0x100223c0
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x2c], eax
test esi, esi
cmp ebp, eax
mov dword [esp + 0x14], eax
jle 0x10022595
mov edi, dword [esp + 0x30]
add edi, 0x100
jmp 0x10022414
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x10022561
cmp eax, dword [esp + 0x20]
jge 0x10022561
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4]
lea ebx, [edi - 0x100]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x10022435
test eax, 0x6fc4
mov edx, dword [esp + 0x7c]
mov dword [edi + 4], edx
test ah, ah
mov eax, dword [esp + 0x78]
mov dword [edi], eax
test ecx, ecx
mov ecx, dword [esp + 0x80]
mov dword [edi + 8], ecx
test al, al
call fcn.10041000
mov ebp, eax
mov al, al
push 0
push 0
push ebx
push 0x100216b0
push 0
push 0
call fcn.1011990f
mov ebx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + ebx*4], eax
mov dl, dl
push ebp
call fcn.100410c0
add esp, 4
mov bl, bl
cmp dword [esi + ebx*4], 0
je 0x100224a7
add ebx, 1
mov dword [esp + 0x2c], ebx
test bh, bh
mov eax, dword [esp + 0x14]
add eax, 1
add edi, 0x510
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x10022410
cmp dword [esp + 0x2c], 0
jle 0x1002258d
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
add ebx, 0xffffffff
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov edi, eax
mov cl, cl
cmp edi, 0xffffffff
je 0x1002258d
mov al, al
mov dword [esp + 0x14], 0
test ebx, ebx
mov ecx, dword [esi + edi*4]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov ebp, ebp
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, edx
mov dword [esi + edi*4], 0
mov al, al
cmp edi, ebx
mov eax, edi
jge 0x10022543
jmp 0x10022530
mov ecx, dword [esi + eax*4 + 4]
mov dword [esi + eax*4], ecx
test eax, 0x2166
add eax, 1
cmp eax, ebx
jl 0x10022530
sub dword [esp + 0x2c], 1
sub ebx, 1
test edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10022566
cmp dword [esp + 0x2c], eax
jg 0x100224da
jmp 0x1002258d
jmp fcn.10105c49
test cl, cl
lea ecx, [eax + 0x10c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10022573
sub eax, edi
add eax, ecx
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.1000d0b0
mov edx, edx
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jle 0x100225b6
mov eax, dword [esp + 0x30]
add eax, 0x50c
mov ecx, ebp
mov dword [eax], 1
test ah, ah
add eax, 0x510
sub ecx, 1
jne 0x100225a4
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x100225f1
mov eax, dword [esi + edi*4]
test eax, eax
je 0x100225e8
push eax
call fcn.10066f60
add esp, 4
mov ecx, ecx
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x352b
mov dword [esi + edi*4], 0
xchg ebx, eax
xchg ebx, eax
add edi, 1
cmp edi, dword [esp + 0x2c]
jl 0x100225be
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x54]
jne 0x10022650
test ebp, ebp
jle 0x10022650
mov edx, dword [esp + 0x30]
lea ecx, [edx + 0x10c]
lea esp, [esp]
cmp byte [ecx], 0
jne 0x10022624
add eax, 1
add ecx, 0x510
cmp eax, ebp
jl 0x10022610
jmp 0x10022650
imul eax, eax, 0x510
lea edi, [eax + edx + 0x10c]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022636
sub eax, edx
add eax, edi
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.1000d0b0
mov ebx, ebx
push esi
call fcn.10116c9f
add esp, 4
push ebx
pop ebx
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10116c9f
add esp, 4
test esi, esi
mov dword [ebx + 0x10], ebx
mov dword [ebx + 0x14], ebx
mov byte [esp + 0x64], 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov esi, eax
sub eax, ecx
add eax, 1
cmp eax, 0xffffffff
mov edi, ecx
ja 0x100226fe
test eax, eax
jbe 0x100226fe
cmp eax, 0x10
jbe 0x100226c2
cmp eax, 0x80
mov dword [esp + 0x30], eax
jbe 0x100226a7
push eax
call fcn.10105b20
jmp 0x100226b1
lea edx, [esp + 0x30]
push edx
call fcn.101057f0
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
add eax, ecx
mov dword [ebx], eax
cmp esi, edi
mov eax, dword [ebx + 0x14]
je 0x100226d8
sub esi, edi
push esi
push edi
push eax
call fcn.10117f40
add esp, 0xc
add eax, esi
mov dword [ebx + 0x10], eax
mov byte [eax], 0
mov byte [esp + 0x64], 3
mov dword [esp + 0x38], 1
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10109203
jmp 0x100222e4
push 0x101823a8
call fcn.10105a80