Function at 0x1005d8e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100a074]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.0100870d
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.msvcrt.dll_wprintf]
jl 0x1006384
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.010053df
mov ebx, eax
test ebx, ebx
jl 0x1006316
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.01005847
mov ebx, eax
test ebx, ebx
jl 0x1006316
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100234c
push edi
call fcn.01002bf3
test al, al
mov ebx, dword [sym.imp.msvcrt.dll_wcstoul]
je 0x1005e43
push dword [ebp - 0x20]
push edi
call fcn.01002c42
push 0
push 0
push dword [ebp - 0x54]
call ebx
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x20], eax
jb 0x1005e2e
cmp eax, 0x32
jbe 0x1005e4a
push eax
push 0x100233c
push 0x643
call fcn.01007efc
add esp, 0xc
jmp 0x1005ebe
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x100232c
push edi
call fcn.01002bf3
test al, al
je 0x1005e7e
push dword [ebp - 0x34]
push edi
call fcn.01002c42
push 0
push 0
push dword [ebp - 0x50]
call ebx
add esp, 0xc
imul eax, eax, 0x3e8
jmp 0x1005e83
mov eax, 0x3e8
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
mov dword [ebp - 0x34], eax
je 0x1005ec8
push 0x57e
call fcn.01007e74
jmp 0x1005eae
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push dword [ecx + eax*4]
push 0x1001260
call esi
inc dword [edi + 8]
pop ecx
pop ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x1005e9a
push 0x100125c
call esi
pop ecx
mov ebx, 0x80070057
jmp 0x1006316
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x38]
call fcn.010054e4
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x10062ef
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x1005ef4
mov eax, ecx
mov dword [ebp - 0x20], eax
cmp eax, 1
ja 0x1005f3c
xor ebx, ebx
cmp ecx, edi
jbe 0x1006042
push 0x1001b98
call esi
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 1]
push eax
lea edi, [ecx + ebx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
push dword [eax]
push 0x10022f4
call esi
add esp, 0x14
push dword [edi]
call fcn.01005ad7
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
jb 0x1005f03
jmp 0x1006042
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x44], edi
push 0x40
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x1005f6b
mov ebx, 0x8007000e
jmp 0x10062ef
cmp dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jbe 0x1005fa9
mov ebx, eax
lea eax, [ebp - 0x4c]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x58]
push eax
push edi
push ebx
push 0x1005bdb
push edi
push edi
mov dword [ebx + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebx], eax
je 0x1005fe2
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add ebx, 0xc
cmp eax, dword [ebp - 0x20]
jb 0x1005f75
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x40], eax
jae 0x1006042
push 0x10022dc
call esi
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
pop ecx
jbe 0x100601d
mov edi, dword [ebp - 0x28]
add edi, 4
cmp ebx, 0x10
jae 0x100601d
mov eax, dword [edi]
cmp eax, dword [ebp - 0x18]
jae 0x100600c
inc eax
push eax
push 0x10022d0
call esi
pop ecx
jmp 0x1006013
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1005ff7
call edi
mov ebx, eax
jmp 0x10062ef
call edi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x10062ef
push 0x10022c8
call esi
inc ebx
add edi, 0xc
cmp ebx, dword [ebp - 0x20]
pop ecx
jb 0x1005fca
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x40]
push 0x10022ac
call esi
add esp, 0xc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x40], edi
jb 0x1005fb5
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x100609a
push 0x1001b98
call esi
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + edi*4]
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push ecx
movzx ecx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
push eax
push 0x1002250
call esi
add esp, 0x20
push edi
push dword [ebp - 0x18]
push ebx
call fcn.010052ea
mov ebx, eax
test ebx, ebx
jl 0x10062ef
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jb 0x1006049
push 0x1001b98
call esi
mov ebx, dword [ebp - 0x24]
xor eax, eax
cmp dword [ebp - 0x18], eax
pop ecx
mov dword [ebp - 0x30], eax
jbe 0x10060df
mov ecx, dword [ebx + eax*4]
cmp byte [ecx + 4], 0
jne 0x10060c0
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x10060af
jmp 0x10060df
mov eax, dword [ebx + eax*4]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
xor edi, edi
mov eax, dword [ebx + edi*4]
add eax, 0x20
sub dword [eax], ecx
sbb dword [eax + 4], edx
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x10060ce
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
jbe 0x10062d9
mov eax, dword [ebp - 0x1c]
lea edi, [ebx + eax*4]
mov eax, dword [edi]
cmp byte [eax + 4], 0
mov ecx, 0x1002230
jne 0x1006105
mov ecx, 0x1001c28
push ecx
push dword [eax]
push 0x1002224
call esi
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax + 0x10], 0
jne 0x100613b
mov eax, dword [eax + 0x14]
cmp eax, 0x80072af9
jne 0x1006130
push 0x10021ec
call esi
jmp 0x10061cb
push eax
push 0x10021c8
jmp 0x10061c8
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push 0x10021a4
call esi
push 0x100218c
call esi
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
add esp, 0x18
test ecx, ecx
jge 0x1006189
cmp ecx, 0x80072b02
jne 0x1006181
push 0x3e8
push 0x1002130
jmp 0x1006191
push ecx
push 0x1002110
jmp 0x1006191
push dword [eax + 0x1c]
push 0x10020f4
call esi
pop ecx
pop ecx
push 0x10020e0
call esi
mov eax, dword [edi]
pop ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
jge 0x10061d9
cmp ecx, 0x80072746
jne 0x10061b8
push 0x1002070
jmp 0x1006129
cmp ecx, 0x800705b4
jne 0x10061d1
push dword [eax + 0x3c]
push 0x1002000
call esi
pop ecx
pop ecx
jmp 0x10062ca
push ecx
push 0x1002110
jmp 0x10061c8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jg 0x10061fb
jl 0x10061eb
test eax, eax
jae 0x10061fb
neg eax
adc ecx, 0
neg ecx
mov dword [ebp - 0x3c], 0x10015ac
jmp 0x1006202
mov dword [ebp - 0x3c], 0x10015a8
push 0
push 0x989680
push ecx
push eax
call fcn.01007af0
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x5c], ebx
mov ebx, eax
je 0x1006222
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
jmp 0x1006227
mov eax, 0x1001fe8
push eax
push ecx
push edx
push ebx
push dword [ebp - 0x3c]
push 0x1001fac
call esi
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x2c], 0
jne 0x1006247
mov eax, 0x1001f70
jmp 0x10062a6
cmp dword [eax + 0x30], 1
ja 0x100628f
mov word [ebp - 0x14], 0x27
mov ecx, dword [edi]
movzx cx, byte [ecx + 0x2c]
mov word [ebp - 0x12], cx
mov ecx, dword [edi]
movzx cx, byte [ecx + 0x2d]
mov word [ebp - 0x10], cx
mov ecx, dword [edi]
movzx cx, byte [ecx + 0x2e]
mov word [ebp - 0xe], cx
mov ecx, dword [edi]
movzx cx, byte [ecx + 0x2f]
and word [ebp - 8], 0
lea eax, [ebp - 0x14]
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], 0x27
jmp 0x10062a6
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x100629a
mov eax, dword [ecx]
jmp 0x10062a6
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x10062a6
mov eax, 0x1001f5c
mov edi, dword [edi]
movzx ecx, byte [edi + 0x2f]
push ecx
movzx ecx, byte [edi + 0x2e]
push ecx
movzx ecx, byte [edi + 0x2d]
push ecx
movzx ecx, byte [edi + 0x2c]
push ecx
push eax
push 0x1001f18
call esi
mov ebx, dword [ebp - 0x24]
add esp, 0x18
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jb 0x10060ed
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.01005c29
mov ebx, eax
test ebx, ebx
jl 0x10062ef
xor ebx, ebx
cmp dword [ebp - 0x24], 0
je 0x1006316
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x100630d
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call fcn.010052a1
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x10062fc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x38]
jmp 0x1006327
mov eax, edi
mov edi, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x100631b
call fcn.01008752
cmp dword [ebp - 0x2c], edi
je 0x100633d
push dword [ebp - 0x2c]
call fcn.01005822
cmp dword [ebp - 0x28], 0
je 0x1006384
mov eax, dword [ebp - 0x48]
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x44], eax
jbe 0x100637b
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
test eax, eax
je 0x100636d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add edi, 0xc
cmp eax, dword [ebp - 0x20]
jb 0x1006356
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1006392
push ebx
push 0x1001edc
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.010074a2
leave
ret 4