Function at 0x41ca40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffe66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], edi
xor ebx, ebx
push ebx
mov esi, 0xf
push 0x503a80
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00404e20
cmp dword [ebp - 0x18], 0x10
mov dword [edi], vtable.CLog.0
jb 0x41ca9f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [edi], vtable.CFileLog.0
lea esi, [edi + 4]
push 8
mov byte [ebp - 4], 1
mov dword [esi], ebx
call fcn.004e0835
add esp, 4
cmp eax, ebx
je 0x41ccff
mov dword [esi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esi]
mov dword [ecx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea esi, [edi + 0x20]
push 1
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00409a50
lea edx, [edi + 0xdc]
push edx
mov byte [ebp - 4], 3
mov dword [edi + 0xc8], 6
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xd0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004e03c9
lea ecx, [ebp - 0x48]
push ecx
call fcn.004e03a2
push 0x3f
lea edx, [ebp - 0xa3]
push ebx
push edx
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xa4], bl
call fcn.004e00a0
mov eax, dword [ebp - 0x10]
push eax
push str._y_m_d
lea ecx, [ebp - 0xa4]
push 0x3f
push ecx
call fcn.004e2abf
push 0x103
lea edx, [ebp - 0x1a7]
push ebx
push edx
mov byte [ebp - 0x1a8], bl
call fcn.004e00a0
add esp, 0x30
cmp dword [ebp + 0x18], ebx
jne 0x41cbfe
push 0x104
lea eax, [ebp - 0x1a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1a8]
lea edx, [eax + 1]
jmp 0x41cbb0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41cbb0
sub eax, edx
push eax
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp + 8]
call fcn.00404e20
push 1
push 0xffffffffffffffff
push 0x503f6c
lea ecx, [ebp + 8]
call fcn.00402910
lea ecx, [ebp + 8]
cmp eax, 0xffffffff
je 0x41cbf2
push ebx
push 0x503a80
push 0xffffffffffffffff
push eax
call fcn.0041b3b0
jmp 0x41cbfe
push 9
push str.DPAXTEST
call fcn.00404e20
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004116e0
push str..log
push eax
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 4
call fcn.00408880
add esp, 0x18
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 6
jb 0x41cc3e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004df8f9
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jae 0x41cc57
lea eax, [ebp - 0x64]
push 0x40
push 0xa
push eax
lea ecx, [esi + 4]
call fcn.00405af0
test eax, eax
jne 0x41cc80
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x41cc95
or eax, 4
jmp 0x41cc95
mov edx, dword [esi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + esi + 0x38]
add ecx, esi
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
push eax
call fcn.00401c90
mov eax, dword [esi]
mov ecx, dword [eax + 4]
or dword [ecx + edi + 0x34], 0x40
lea edx, [ebp - 0x3c]
push edx
push ebx
push edi
push 0x41c970
push ebx
lea eax, [ecx + edi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x10
mov dword [edi + 0xd8], eax
cmp dword [ebp - 0x50], esi
jb 0x41ccd9
mov eax, dword [ebp - 0x64]
push eax
call fcn.004df8f9
add esp, 4
cmp dword [ebp + 0x1c], esi
jb 0x41ccea
mov ecx, dword [ebp + 8]
push ecx
call fcn.004df8f9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], ebx
call fcn.004df745
push 0x5512e8
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], vtable.std::bad_alloc.0
call fcn.004e0cd3
int3