Function at 0x402258
Capabilities:
Create thread
Get common file path

Disassembly:
mov eax, 0x417b7a
call fcn.004174a4
sub esp, 0x204
mov eax, dword [0x41d3a8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1d8], ecx
mov eax, dword [ebp - 0x1d8]
mov dword [eax + 0x40], 0x80070057
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1d8]
add ecx, 0x34
call fcn.00404408
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x4194a0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0040306f
and dword [ebp - 4], 0
push 0x2f
lea ecx, [ebp - 0x120]
call fcn.00403295
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4022fd
push 0x5c
lea ecx, [ebp - 0x120]
call fcn.00403295
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x402756
mov eax, dword [ebp - 0x120]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x10]
inc eax
mov ecx, dword [ebp - 0x168]
sub ecx, eax
push ecx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
call fcn.004032dd
mov byte [ebp - 4], 1
push str..exe
lea ecx, [ebp - 0x130]
call fcn.0040306f
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 2
push 0
push 0x2e
lea ecx, [ebp - 0x124]
call fcn.00403228
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x124]
call fcn.00403387
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e8]
lea eax, [ebp - 0x138]
push eax
call fcn.004034b2
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x178]
lea ecx, [ebp - 0x124]
call fcn.00404061
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x138]
sub eax, 0x10
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
call fcn.004049ee
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x134]
sub eax, 0x10
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
call fcn.004049ee
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x130]
sub eax, 0x10
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
call fcn.004049ee
push dword [ebp - 0x124]
mov ecx, dword [ebp + 0x10]
call fcn.00404482
push dword [ebp - 0x10]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00403387
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x188]
mov eax, dword [eax]
mov dword [ebp - 0x18c], eax
push dword [ebp - 0x18c]
mov ecx, dword [ebp + 0xc]
call fcn.00404482
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x13c]
sub eax, 0x10
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
call fcn.004049ee
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x194], eax
push dword [ebp - 0x194]
lea ecx, [ebp - 0x140]
call fcn.00402ff2
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 6
push 0x419494
lea ecx, [ebp - 0x144]
call fcn.0040306f
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x19c], eax
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x148]
call fcn.00402ff2
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x200]
push dword [ebp - 0x208]
lea eax, [ebp - 0x14c]
push eax
call fcn.004034b2
add esp, 0xc
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x1f8]
push dword [ebp - 0x210]
lea eax, [ebp - 0x12c]
push eax
call fcn.004034b2
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14c]
sub eax, 0x10
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
call fcn.004049ee
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x148]
sub eax, 0x10
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
call fcn.004049ee
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x144]
sub eax, 0x10
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
call fcn.004049ee
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x140]
sub eax, 0x10
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
call fcn.004049ee
push dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1d8]
add ecx, 0x38
call fcn.00404482
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x1d8]
push 0x402d41
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1d8]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x30], 0xffffffff
jne 0x4026aa
mov dword [ebp - 0x150], 0x80004005
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x12c]
sub eax, 0x10
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
call fcn.004049ee
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x124]
sub eax, 0x10
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
call fcn.004049ee
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
sub eax, 0x10
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
call fcn.004049ee
mov eax, dword [ebp - 0x150]
jmp 0x402789
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1d8]
add eax, 0xc
mov dword [ebp - 0x1c8], eax
push dword [ebp - 0x1c8]
mov eax, dword [ebp - 0x1c8]
add eax, 8
push eax
push 0x41d4dc
call fcn.00404a39
mov eax, dword [0x41d580]
mov dword [ebp - 0x1c0], eax
push 0
push 0x404747
push dword [ebp - 0x1c4]
push 0x73
push dword [ebp - 0x1c0]
call fcn.0040cc7a
add esp, 0x14
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1d8]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x12c]
sub eax, 0x10
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
call fcn.004049ee
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x124]
sub eax, 0x10
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
call fcn.004049ee
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x154], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
sub eax, 0x10
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
call fcn.004049ee
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00417374
leave
ret 0xc