Function at 0x412a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd678
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4fe7c0]
mov eax, dword [eax - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0
test eax, eax
je 0x412ad0
mov ecx, dword [0x4fe7c8]
cmp dword [ecx - 0xc], 0
je 0x412ad0
push 0x4ceca8
lea ecx, [ebp - 0x4c]
call fcn.004037ce
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push 0x4fe7b8
push eax
mov byte [ebp - 4], 1
call fcn.00403336
mov eax, dword [eax]
mov ecx, dword [0x4fe7c8]
mov edx, dword [0x4fe7c0]
add esp, 0xc
push eax
push 0
push ecx
push edx
call edi
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412aad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ad0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x14
lea edx, [ebp - 0x38]
push edx
push str.yyyy_MM_dd
lea eax, [ebp - 0x48]
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b00
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x4fe7c0
call fcn.0040170b
push 0x4cecd0
lea edx, [ebp - 0x50]
push 0x4fe7c4
push edx
call fcn.0040338d
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
call fcn.00403336
add esp, 0x18
push eax
mov ecx, 0x4fe7c8
mov byte [ebp - 4], 3
call fcn.0040195e
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov ecx, 0x4ceca8
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x412be2
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.0040114c
add esp, 8
test eax, eax
je 0x412bef
push esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040188a
jmp 0x412bef
push 0x4ceca8
lea ecx, [ebp - 0x4c]
call fcn.00403254
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
mov byte [ebp - 4], 5
call edx
add eax, 0x10
mov dword [ebp - 0x50], eax
mov eax, 0x4ceccc
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x412c38
mov ecx, eax
movzx esi, cx
push 0
push esi
call fcn.0040114c
add esp, 8
test eax, eax
je 0x412c45
push esi
push eax
lea ecx, [ebp - 0x50]
call fcn.0040188a
jmp 0x412c45
push 0x4ceccc
lea ecx, [ebp - 0x50]
call fcn.00403254
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x58]
push 0x4fe7b8
push eax
mov byte [ebp - 4], 7
call fcn.00403336
mov esi, eax
push 0x4fe7bc
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 8
call fcn.00403336
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [0x4fe7c0]
add esp, 0x18
push esi
push eax
mov eax, dword [0x4fe7c8]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412caa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ccd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0x4128e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e4d2
mov esp, ebp
pop ebp
ret