Function at 0x10038ef5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003961a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x14], 9
mov dword [ebp - 0x11c], 0xfffffff9
mov dword [ebp - 0x118], 0xfffffff9
mov dword [ebp - 0x114], 0xfffffff9
mov dword [ebp - 0x110], 0xfffffff9
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x10038f58
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff5
je 0x1003912a
mov dword [ebp - 8], 0x96a485bf
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x10038f8a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x10038fa0
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xf0], 0x76e6bacd
jmp 0x10038f83
mov dword [ebp - 8], 0
jmp 0x10038fb0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jg 0x10039019
mov dword [ebp - 0x30], 0
jmp 0x10038fc6
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x10038fdc
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xb4], 7
jmp 0x10038fbf
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xf0]
neg eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x84]
mov dword [ebp + eax*4 - 0xf0], ecx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x1c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp + eax - 0xb4], ecx
jmp 0x10038fa9
mov dword [ebp - 8], 0
jmp 0x10039029
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x16
jne 0x10039125
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x1c], 0
jmp 0x1003904d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xc
jle 0x10039120
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10039081
push 0x6d53
push 1
push 0x1c81
push 0x3692
push 0x5c95
call fcn.10038ab4
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x10039099
cmp dword [ebp - 0xc4], 0
je 0x10039099
mov dword [ebp - 0x48], 1
jmp 0x1003909d
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xe4bf748d
ja 0x100390b2
mov dword [ebp - 0x98], 1
jmp 0x100390b9
and dword [ebp - 0x98], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebp + eax - 0xf0]
add ecx, 0x289
jns 0x100390dd
mov dword [ebp - 0x50], 1
jmp 0x100390e1
and dword [ebp - 0x50], 0
imul eax, dword [ebp - 0x50], 0
cmp eax, 0x3cc9
jg 0x10039108
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x11c], 0
je 0x10039108
mov dword [ebp - 0xa0], 1
jmp 0x1003910f
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
jmp 0x10039046
jmp 0x10039022
jmp 0x10038f51
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x100], 0xc05b
mov dword [ebp - 0xfc], 0xc05b
mov dword [ebp - 0xf8], 0xc05b
mov dword [ebp - 0xf4], 0xc05b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x18], 3
jmp 0x10039172
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x100391be
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x20], 0
jmp 0x1003918f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jg 0x100391bc
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x100], 0
je 0x100391a4
jmp 0x100391bc
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + eax - 0x100]
mov dword [ebp + ecx*4 - 0x100], eax
jmp 0x10039188
jmp 0x1003916b
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x100391e7
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jge 0x100391fd
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x138], 0
jmp 0x100391e0
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x1003921d
push 0x39b9
push 0x45e0
push 0
call fcn.1003b391
add esp, 0xc
mov dword [ebp - 0x28], 0x15
jmp 0x1003922d
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xfffffff7
jle 0x10039247
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x138], 0
je 0x10039245
jmp 0x10039247
jmp 0x10039226
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 4], 0
jbe 0x10039618
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0x515fdc8d
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x64], 0x2c8cdab0
mov dword [ebp - 0xb8], 0xfffffffb
mov dword [ebp - 0xc], 0
jmp 0x1003928d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x100392a3
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xe0], 0xac204e2d
jmp 0x10039286
mov dword [ebp - 0xc], 0
jmp 0x100392b3
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jge 0x100392c9
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x10c], 0xffff
jmp 0x100392ac
mov dword [ebp - 4], 0
jmp 0x100392d9
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x100392ef
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xe0], 0xe57ad95e
jmp 0x100392d2
mov dword [ebp - 4], 0
jmp 0x100392ff
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jle 0x100395e6
mov dword [ebp - 0x120], 0xcb14
mov dword [ebp - 0xd0], 0xad8530de
mov dword [ebp - 0x3c], 0x36173948
mov dword [ebp - 0xe4], 0xfffffff6
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x38], 3
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd4], 0xffff
xor eax, eax
jne 0x10039366
cmp dword [ebp - 0x34], 0
jne 0x10039366
and dword [ebp - 0xa8], 0
jmp 0x10039370
mov dword [ebp - 0xa8], 1
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xa8], eax
jg 0x10039384
mov dword [ebp - 0x60], 1
jmp 0x10039388
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x100393ac
mov dword [ebp - 0x8c], 1
jmp 0x100393b3
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x38], eax
jl 0x100393d0
mov dword [ebp - 0xd8], 1
jmp 0x100393d7
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0xe4], 0x70d9
jge 0x100393f5
mov dword [ebp - 0x6c], 1
jmp 0x100393f9
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x6c], eax
jne 0x1003940d
mov dword [ebp - 0xac], 1
jmp 0x10039414
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 1
jae 0x10039426
mov dword [ebp - 0x74], 1
jmp 0x1003942a
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x74], eax
je 0x10039441
mov dword [ebp - 0x94], 1
jmp 0x10039448
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0xd0]
imul eax, dword [ebp - 0x94]
test eax, eax
jne 0x10039465
cmp dword [ebp - 0x38], 0
jne 0x10039465
and dword [ebp - 0x7c], 0
jmp 0x1003946c
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x7c], eax
jle 0x10039480
mov dword [ebp - 0xa4], 1
jmp 0x10039487
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xa4], eax
jl 0x1003949b
mov dword [ebp - 0x40], 1
jmp 0x1003949f
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xd4]
cmp dword [ebp - 0x40], eax
jge 0x100394b6
mov dword [ebp - 0x9c], 1
jmp 0x100394bd
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x64], eax
jge 0x100394d7
mov dword [ebp - 0x68], 1
jmp 0x100394db
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
add eax, 0x4220
cmp eax, dword [ebp - 0x68]
jl 0x100394f1
mov dword [ebp - 0x70], 1
jmp 0x100394f5
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x70], eax
je 0x10039506
mov dword [ebp - 0x78], 1
jmp 0x1003950a
and dword [ebp - 0x78], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xe0]
cmp eax, dword [ebp - 0x78]
jl 0x10039525
mov dword [ebp - 0x80], 1
jmp 0x10039529
and dword [ebp - 0x80], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x10c]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xcc], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x10c]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x10c], eax
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0xcc]
jl 0x10039577
mov dword [ebp - 0x88], 1
jmp 0x1003957e
and dword [ebp - 0x88], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xe0]
cmp dword [ebp - 0x88], eax
jg 0x1003959f
mov dword [ebp - 0x90], 1
jmp 0x100395a6
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0xfffffff9
jge 0x100395b8
mov dword [ebp - 0x44], 1
jmp 0x100395bc
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xf], 0
push 0x2c03
push 0
push 0x31d8
lea eax, [ebp - 0xf]
push eax
call fcn.10039636
add esp, 0x10
jmp 0x100392f8
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
add ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
jbe 0x10039618
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x6181
push 1
push dword [ebp - 0xbc]
call fcn.10038e8c
add esp, 0x14
jmp 0x100395f1
jmp 0x10039632
push 0
push 0xcb4
push 0
push 0
push 0x1964
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret