Function at 0x401440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x14
call fcn.004517ca
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x48b2f8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp - 4]
call fcn.00401420
mov eax, 0
cmp eax, ecx
jl 0x4014ad
push 0
push 0x40a1168
push 1
call fcn.004517d0
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.004018d8
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.004522d0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4014f0
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
call fcn.00401420
mov eax, 1
cmp eax, ecx
jl 0x40151e
push 0x58
push 0x40a1168
push 1
call fcn.004517d0
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push VariantCopy
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40153b
mov eax, 0x48b2f0
push eax
push 1
mov ebx, 0x198
call fcn.004522d0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401567
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
cmp dword [ebp + 0x20], 0
je 0x401585
cmp dword [ebp + 0x1c], 1
je 0x401585
xor eax, eax
jmp 0x40158a
mov eax, 1
test eax, eax
je 0x401604
mov ebx, dword [ebp - 4]
call fcn.00401420
mov eax, 2
cmp eax, ecx
jl 0x4015ba
push 0xf8
push 0x40a1168
push 1
call fcn.004517d0
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 1
mov ebx, 0x198
call fcn.004522d0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4015f9
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
jmp 0x40166f
mov ebx, dword [ebp - 4]
call fcn.00401420
mov eax, 2
cmp eax, ecx
jl 0x40162c
push 0x12f
push 0x40a1168
push 1
call fcn.004517d0
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push dword [ebp + 0x1c]
push 1
mov ebx, 0x198
call fcn.004522d0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401669
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
call fcn.0040191c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40168f
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401cb0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00401d54
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.0040282c
cmp dword [ebp + 0x24], 1
jge 0x4016d8
mov dword [ebp + 0x24], 0
jmp 0x401779
mov ebx, dword [0x58e8ac]
add ebx, 0x20
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
cmp dword [ebp + 0x24], eax
jg 0x401703
cmp dword [ebp + 0x24], 0
jle 0x401703
mov eax, 1
jmp 0x401708
mov eax, 0
test eax, eax
je 0x401730
mov ebx, dword [0x58e8ac]
add ebx, 0x20
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov dword [ebp + 0x24], eax
mov dword [ebp - 0x10], 0x10000
jmp 0x401779
mov ebx, dword [0x58e8ac]
add ebx, 0x20
mov dword [ebp - 0x18], ebx
push 1
push 1
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
cdq
push edx
push eax
mov eax, dword [ebp + 0x24]
cdq
push edx
push eax
call fcn.004028d4
push 0x80000401
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.004523a0
add esp, 0x10
mov dword [ebp + 0x24], eax
mov dword [ebp - 0x10], 0x10000
cmp dword [ebp + 0x2c], 1
jne 0x4017ae
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0xc8
call fcn.00452480
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x403ca5
call fcn.00402b4c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp + 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp + 0x24]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4017f8
push 0x44e
push 0x40a1168
push 6
call fcn.004517d0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401817
push dword [ebp - 0xc]
call fcn.00402b68
mov eax, 0
jmp 0x40187b
cmp dword [ebp + 0x3c], 1
jne 0x401829
push dword [ebp - 0x14]
call fcn.00402c00
cmp dword [ebp + 0x18], 0
jne 0x401864
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40185f
push 0x55e
push 0x40a1168
push 6
call fcn.004517d0
add esp, 0xc
jmp 0x40186c
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
call fcn.00402cf4
mov eax, 1
jmp 0x40187b
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40189a
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401896
imul eax, dword [ebx]
jmp 0x40188b
mov ecx, eax
test ecx, ecx
je 0x4018b9
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4018b2
push ebx
push eax
call fcn.004517d6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4018a0
call fcn.004517d6
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4018d1
push ebx
call fcn.004517d6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x3c