Function at 0x10004f4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 4], 0
push 0x208
call fcn.100152af
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x10037579
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xff
jg 0x10005055
mov ebx, dword [ebp - 8]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10004fcd
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10004fe0
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov word [ebx], 0xfb
mov ebx, dword [ebp - 8]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000500c
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000501f
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
call dword [0x10039b3e]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10005048
push 6
call fcn.100152b5
add esp, 4
mov ebx, dword [ebp - 0x18]
mov word [ebx], ax
pop ebx
pop ecx
jmp 0x10004f9f
add esp, 8
mov ebx, dword [0x10039b0a]
call fcn.100016d3
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10005838
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000509a
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100050ad
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0
je 0x10005830
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100050e3
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100050f6
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
push 0x80000601
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 1
mov ebx, 0x5c
call fcn.10016ad0
add esp, 0x10
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x9d4
call fcn.10016d00
add esp, 0x10
and eax, 0xff
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10005166
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005179
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
cwde
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000527b
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100051b4
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100051c7
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 1
jne 0x1000522b
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10005200
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005213
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov byte [ebx], 2
jmp 0x10005276
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000524b
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000525e
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov byte [ebx], 0
jmp 0x10005830
jmp 0x10005368
cmp dword [ebp - 0xc], 0
jge 0x10005368
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100052a5
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100052b8
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 0
jne 0x10005317
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100052f1
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005304
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov byte [ebx], 1
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10005337
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000534a
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0
jge 0x10005368
jmp 0x10005830
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10005388
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000539b
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 0
jbe 0x10005407
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100053d4
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100053e7
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp byte [ebx], 0x58
je 0x10005407
mov eax, 1
jmp 0x1000540c
mov eax, 0
test eax, eax
je 0x10005830
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10005434
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005447
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov byte [ebx], 0x58
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000547a
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000548d
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
call fcn.100016ec
mov eax, 0x11
cmp eax, ecx
jl 0x100054b8
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp word [ebx], 0
mov eax, 0
setl al
test eax, eax
je 0x100054e0
mov eax, 1
jmp 0x100054e5
mov eax, 0
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 8]
call fcn.100016ec
mov eax, 0x10
cmp eax, ecx
jl 0x10005506
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
cmp word [ebx], 0
mov eax, 0
setl al
test eax, eax
je 0x1000552e
mov eax, 2
jmp 0x10005533
mov eax, 0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 8]
call fcn.100016ec
mov eax, 0xf
cmp eax, ecx
jl 0x10005554
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
cmp word [ebx], 0
mov eax, 0
setl al
test eax, eax
je 0x1000557c
mov eax, 4
jmp 0x10005581
mov eax, 0
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 8]
call fcn.100016ec
mov eax, 0x5a
cmp eax, ecx
jl 0x100055a2
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x40]
cmp word [ebx], 0
mov eax, 0
setl al
test eax, eax
je 0x100055ca
mov eax, 8
jmp 0x100055cf
mov eax, 0
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x58]
fadd qword [ebp - 0x58]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x60]
fadd qword [ebp - 0x60]
fild dword [ebp - 0x48]
fstp qword [ebp - 0x68]
fadd qword [ebp - 0x68]
fstp qword [ebp - 0x70]
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x78]
fld qword [ebp - 0x78]
fsub qword [ebp - 0x70]
ftst
fnstsw ax
test ah, 1
je 0x10005612
fchs
fcomp qword [0x10037589]
fnstsw ax
test ah, 0x41
je 0x10005830
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10005643
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005656
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0
je 0x1000573e
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000568f
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100056a2
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
push 0x80000601
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 1
mov ebx, 0x5c
call fcn.10016ad0
add esp, 0x10
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x9d4
call fcn.10016d00
add esp, 0x10
and eax, 0xff
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10005712
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005725
push 1
call fcn.100152b5
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
cmp word [ebx], 0
jl 0x1000573e
jmp 0x10005830
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000575e
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10005771
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov ebx, dword [0x10039b0a]
call fcn.100016ec
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100057a6
push 4
call fcn.100152b5
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100057b9
push 1
call fcn.100152b5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000580b
push 6
call fcn.100152b5
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10005830
push 6
call fcn.100152b5
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x1000506c
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
call fcn.100152c1
add esp, 4
mov esp, ebp
pop ebp
ret