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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d607e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
push 8
mov dword [ebp - 0x30], 0x51a430
mov dword [0x51a430], eax
mov dword [0x51a434], ebx
call fcn.0045401f
add esp, 4
cmp eax, ebx
je 0x419837
mov dword [0x51a434], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [0x51a434]
mov dword [ecx], 0x51a434
mov dword [0x51a438], ebx
mov dword [0x51a43c], ebx
mov dword [0x51a440], ebx
mov dword [0x51a444], ebx
xor eax, eax
mov dword [ebp - 4], ebx
push ebx
push 0x51a44c
mov dword [0x51a44c], eax
mov dword [0x51a450], eax
mov dword [0x51a454], eax
mov dword [0x51a458], eax
mov dword [0x51a45c], eax
mov dword [0x51a460], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4194b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4194b1
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4194b9
push eax
call fcn.0041b5f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [0x51a464], eax
mov dword [0x51a468], ebx
mov dword [0x51a46c], ebx
push ebx
push ebx
push 1
push ebx
call edi
mov dword [0x51a470], eax
push ebx
push ebx
push 1
push ebx
call edi
mov dword [0x51a474], eax
push ebx
push 1
push 1
push ebx
call edi
mov dword [0x51a478], eax
mov dword [0x51a47c], ebx
mov byte [ebp - 4], 7
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [0x51a480], eax
mov cl, byte [esi + 9]
mov byte [0x51a485], cl
mov dword [0x51a488], ebx
mov byte [ebp - 4], 9
cmp dword [0x51a430], ebx
jle 0x419816
mov al, byte [esi + 8]
mov byte [0x51a484], al
cmp al, bl
je 0x419555
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x51a488], eax
lea edx, [ebp - 0x28]
push edx
call fcn.00418870
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x24]
push ecx
call fcn.00418980
add esp, 4
mov byte [ebp - 4], 0xb
movzx edx, word [ebp - 0x16]
movzx ecx, word [ebp - 0x18]
mov eax, dword [eax]
push edx
movzx edx, word [ebp - 0x1a]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x20]
push ecx
push edx
push eax
push str..__s___04u__02u__02u__02u__02u_
lea edi, [ebp - 0x28]
call fcn.0041b4b0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4195ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ecx
mov ecx, str..txt
call fcn.0041b050
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xa
call fcn.00418290
cmp dword [0x51a468], ebx
jne 0x419771
mov edx, dword [ebp - 0x28]
push 0x5c
push edx
call fcn.00454d8b
add esp, 8
cmp eax, ebx
je 0x419633
sub eax, dword [ebp - 0x28]
sar eax, 1
js 0x419633
lea ecx, [ebp - 0x28]
push ecx
inc eax
xor ecx, ecx
call fcn.00417f60
push ecx
mov edx, esp
mov dword [ebp - 0x2c], esp
push edx
mov ecx, str..txt
call fcn.0041b050
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x28]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xa
call fcn.00418290
cmp dword [0x51a468], ebx
jne 0x419771
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
push ebx
mov byte [ebp - 4], 0xe
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
call esi
inc eax
jns 0x4196a3
push 0x80070057
call fcn.0041b5f0
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub ecx, eax
or ecx, edx
jge 0x4196bf
lea ecx, [ebp - 0x24]
call fcn.0041b590
mov edi, dword [ebp - 0x24]
cmp dword [edi - 4], 1
jle 0x4196d5
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0041b4d0
mov edi, dword [ebp - 0x24]
mov eax, dword [edi - 8]
push edi
push eax
call esi
mov ecx, dword [edi - 8]
cmp eax, ecx
jge 0x419745
push ecx
push edi
call fcn.00453fa1
add esp, 8
cmp eax, ebx
jl 0x419699
cmp eax, dword [edi - 8]
jg 0x419699
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x24]
call fcn.0041acd0
push ecx
mov eax, esp
mov dword [ebp - 0x2c], esp
push eax
mov ecx, str..txt
call fcn.0041b050
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x24]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x40], esp
mov ebx, esp
call fcn.0041b370
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xe
call fcn.00418290
xor ebx, ebx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x51a468], ebx
je 0x4197f3
mov ecx, dword [0x51a480]
push ecx
call fcn.004184a0
add esp, 4
push ebx
push ebx
push 0x51a430
push 0x418850
push ebx
push ebx
call fcn.00454ceb
add esp, 0x18
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [0x51a47c], eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
jne 0x4197c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4197c1
and eax, 0xffff
or eax, 0x80070000
push eax
call fcn.0041b5f0
mov eax, dword [0x51a470]
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4197e9
push 0x800705b4
call fcn.0041b5f0
call fcn.00418b30
call fcn.00418ed0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x51a430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
call fcn.004541b0
push 0x4ff0c0
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], vtable.std::bad_alloc.0
call fcn.00457e5a
int3