Function at 0x52bea0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x52bea8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x52c241
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov dword [0x540588], eax
xor edx, edx
push ebp
push 0x52c202
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x52c254
call sub.kernel32.dll_OutputDebugStringW
test esi, esi
je 0x52c1f8
lea eax, [esi + 0x864]
push eax
call fcn.005245d8
dec eax
jne 0x52bf12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52c20c
push 0x52c284
call sub.kernel32.dll_OutputDebugStringW
lea eax, [ebp - 0xc]
lea edx, [esi + 0x664]
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0040bc9c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
call fcn.00405e34
mov edx, dword [ebp - 0xc]
mov eax, 0x52c2c0
call fcn.0040688c
test eax, eax
jg 0x52c036
lea eax, [esi + 0x864]
xor edx, edx
call fcn.0040d8ec
lea eax, [esi + 0x8ca]
xor edx, edx
call fcn.0040d8ec
lea eax, [esi + 0xaca]
mov edx, 0x52c300
call fcn.0040d8ec
call fcn.00410060
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 0x52c31c
call fcn.00410d20
lea eax, [esi + 0xaf8]
mov edx, dword [ebp - 0x10]
call fcn.0040d8ec
lea eax, [esi + 0xb5e]
mov edx, 0x52c350
call fcn.0040d8ec
xor eax, eax
mov dword [esi + 0xb6c], eax
xor eax, eax
mov dword [esi + 0xaf4], eax
call fcn.00410060
fstp qword [ebp - 0x30]
wait
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov edx, 0x52c31c
lea eax, [ebp - 0x14]
call fcn.00410d20
lea eax, [esi + 0xb70]
mov edx, dword [ebp - 0x14]
call fcn.0040d8ec
call fcn.00410060
fstp qword [ebp - 0x38]
wait
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov edx, 0x52c31c
lea eax, [ebp - 0x18]
call fcn.00410d20
lea eax, [esi + 0xbd6]
mov edx, dword [ebp - 0x18]
call fcn.0040d8ec
mov eax, esi
call fcn.00523ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52c20c
lea edx, [ebp - 0x44]
mov eax, edi
call fcn.0040c820
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x52c360
call fcn.0040629c
mov eax, dword [ebp - 0x40]
call fcn.00405e6c
push eax
call sub.kernel32.dll_OutputDebugStringW
lea eax, [ebp - 4]
lea edx, [esi + 0xb70]
mov ecx, 0x33
call fcn.00405fc8
lea eax, [ebp - 8]
lea edx, [esi + 0xaf8]
mov ecx, 0x33
call fcn.00405fc8
dec edi
jl 0x52c1f8
lea eax, [ebp - 0x48]
lea edx, [esi + 0xaf8]
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x48]
mov edx, 0x52c39c
call fcn.0040656c
je 0x52c0d1
lea eax, [ebp - 0x50]
lea edx, [esi + 0xaf8]
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040c0f8
cmp dword [ebp - 0x4c], 0
jne 0x52c0d8
mov bl, 1
jmp 0x52c1b1
lea eax, [ebp - 0x54]
lea edx, [esi + 0xb70]
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x18
cdq
idiv ecx
mov edx, eax
pop eax
call fcn.0052b214
dec eax
jne 0x52c13a
lea eax, [ebp - 0x5c]
lea edx, [esi + 0xb70]
mov ecx, 0x33
call fcn.00405fc8
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x52c3b0
call fcn.0040629c
mov eax, dword [ebp - 0x58]
call fcn.00405e6c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov bl, 1
jmp 0x52c1b1
push esi
call sym.RegisterIdr.dll_GetSurplusDays
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov edi, 0x18
cdq
idiv edi
cmp ecx, eax
jg 0x52c1b1
call fcn.00410060
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00417b6c
fstp qword [ebp - 0x64]
wait
mov eax, dword [ebp - 4]
call fcn.00529c50
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00417b6c
fcomp qword [ebp - 0x64]
wait
fnstsw ax
sahf
je 0x52c1b1
push esi
call sym.RegisterIdr.dll_GetSurplusDays
lea edx, [ebp - 0x6c]
call fcn.0040c820
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x52c3ec
call fcn.0040629c
mov eax, dword [ebp - 0x68]
call fcn.00405e6c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov bl, 1
push 0x52c400
call sub.kernel32.dll_OutputDebugStringW
test bl, bl
je 0x52c1f8
push 0x52c430
call sub.kernel32.dll_OutputDebugStringW
lea eax, [esi + 0xaca]
xor edx, edx
call fcn.0040d8ec
mov dword [ebp - 0x1c], 0xffffffff
push esi
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x52b51c
xor edx, edx
xor eax, eax
call fcn.00404fe4
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52c20c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c248
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00405dd8
lea eax, [ebp - 0x5c]
mov edx, 9
call fcn.00405dd8
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405dd8
ret