Function at 0x10002cb0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fa88
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1a78
call fcn.10055c30
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1a74], edx
mov esi, ecx
mov dword [ebp - 0x1a54], esi
mov ebx, 5
xor eax, eax
mov word [ebp - 0x19a4], ax
mov dword [ebp - 0x19a2], eax
mov dword [ebp - 0x199e], eax
mov dword [ebp - 0x199a], eax
mov word [ebp - 0x1996], ax
mov dword [ebp - 0x1a50], eax
push 0xa8
push eax
lea eax, [ebp - 0x1a4c]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x1a78], 0xffffffff
mov dword [ebp - 0x1a70], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x19a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1a50]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov dword [ebp - 0x1a60], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x1a5c], eax
mov dword [ebp - 0x1a68], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x1a58], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov edi, eax
mov dword [ebp - 0x1a6c], edi
cmp dword [ebp - 0x1a58], 0
je 0x10002e98
test edi, edi
je 0x10002e98
push dword [ebp - 0x1a60]
movzx ecx, word [ebp - 0x199c]
push ecx
push dword [ebp - 0x19fc]
push dword [ebp - 0x19a8]
push dword [ebp - 0x1a50]
push str.Bias:__d___DaylightBias:__d___StandardBias:__d___Hour:__d___Mode:__d
push 0xffff
push edi
call fcn.1005211a
add esp, 0x20
test eax, eax
jle 0x10002e7e
xor eax, eax
mov word [edi + 0x1fffe], ax
push 0xffffffffffffffff
push edi
mov ecx, edi
call fcn.10001b80
inc eax
push eax
push dword [ebp - 0x1a58]
lea eax, [ebp - 0x1a68]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x10002e57
push dword [ebp - 0x1a5c]
push edi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
push dword [ebp - 0x1a5c]
push dword [ebp - 0x1a58]
push str.MbaeAlertLog
push 4
mov edx, 0x21c
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10002eb2
push dword [ebp - 0x1a5c]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10002eaa
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
mov eax, dword [ebp - 0x1a58]
test eax, eax
je 0x10002ec5
push eax
call fcn.10052152
add esp, 4
mov eax, dword [ebp - 0x1a6c]
test eax, eax
je 0x10002ed8
push eax
call fcn.10052152
add esp, 4
cmp dword [ebp - 0x1a60], 2
mov eax, dword [ebp - 0x19a8]
je 0x10002eed
mov eax, dword [ebp - 0x19fc]
mov ecx, dword [ebp - 0x1a50]
add ecx, eax
mov dword [ebp - 0x1a60], ecx
mov dword [ebp - 0x1a50], ecx
xor eax, eax
test ecx, ecx
setg al
lea eax, [eax*2 + 0x2b]
movzx eax, ax
mov dword [ebp - 0x1a64], eax
test ecx, ecx
jg 0x10002f24
neg ecx
mov dword [ebp - 0x1a60], ecx
lea eax, [esi + 0xeb6]
mov dword [ebp - 0x1a68], eax
lea ecx, [esi + 0xc70]
mov dword [ebp - 0x1a88], ecx
lea edx, [esi + 0xa68]
mov dword [ebp - 0x1a7c], edx
lea edi, [esi + 0x24]
mov dword [ebp - 0x1a84], edi
lea edi, [esi + 0x658]
mov dword [ebp - 0x1a8c], edi
lea edi, [esi + 0xcb4]
mov dword [ebp - 0x1a80], edi
push 0x10086724
push 0x10086724
push eax
push ecx
push edx
push dword [esi + 0x240]
push dword [esi + 0x238]
push dword [esi + 0x230]
push dword [esi + 0x20]
lea eax, [esi + 0x24]
push eax
push dword [esi + 0x18]
push dword [esi + 0x22c]
push dword [ebp - 0x1a74]
push dword [esi + 4]
lea edi, [esi + 0x860]
push edi
push dword [esi + 0x14]
lea eax, [esi + 0x658]
push eax
push dword [esi + 0x10]
lea eax, [esi + 0xcb4]
push eax
push str._s____d____s____d____s____d____d____d____d____s____d____d____d____d____s____s____s____s____s
lea eax, [ebp - 0x1994]
push eax
call fcn.10004f20
add esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [ebp - 0x1a5c], eax
mov dword [ebp - 0x1a6c], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x1a58], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov esi, eax
cmp dword [ebp - 0x1a58], 0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x100030c7
test esi, esi
je 0x100030c7
lea eax, [ebp - 0x1994]
push eax
push 0x10086484
push 0xffff
push esi
call fcn.1005211a
add esp, 0x10
test eax, eax
jle 0x100030ad
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xffffffffffffffff
push esi
mov ecx, esi
call fcn.10001b80
inc eax
push eax
push dword [ebp - 0x1a58]
lea eax, [ebp - 0x1a6c]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x10003086
push dword [ebp - 0x1a5c]
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call edi
push dword [ebp - 0x1a5c]
push dword [ebp - 0x1a58]
push str.MbaeAlertLog
push 4
mov edx, 0x22e
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100030db
push dword [ebp - 0x1a5c]
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x100030d9
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call edi
mov eax, dword [ebp - 0x1a58]
test eax, eax
je 0x100030ee
push eax
call fcn.10052152
add esp, 4
test esi, esi
je 0x100030fb
push esi
call fcn.10052152
add esp, 4
push str.mbae_alert.log
lea eax, [ebp - 0x544]
cmp word [0x100e1fb0], 0
jne 0x10003120
push 0x104
push eax
call fcn.10053320
add esp, 0xc
jmp 0x10003133
push 0x100e1fb0
push 0x10086350
push eax
call fcn.10004ed0
add esp, 0x10
mov eax, 0x88888889
imul dword [ebp - 0x1a60]
add edx, dword [ebp - 0x1a60]
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
push 0x10086724
push 0x10086724
mov ecx, dword [ebp - 0x1a68]
call fcn.10002be0
push eax
push dword [ebp - 0x1a88]
mov ecx, dword [ebp - 0x1a7c]
call fcn.10002be0
push eax
lea eax, [ebp - 0x33c]
push eax
mov edx, str.0x_08X
mov ecx, dword [ebp - 0x1a54]
mov ecx, dword [ecx + 0x240]
call fcn.10002bb0
add esp, 4
push eax
lea eax, [ebp - 0x314]
push eax
mov edx, str.0x_08X
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x238]
call fcn.10002bb0
add esp, 4
push eax
lea eax, [ebp - 0x2ec]
push eax
mov edx, str.0x_08X
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x230]
call fcn.10002bb0
add esp, 4
push eax
lea eax, [ebp - 0x2c4]
push eax
mov edx, str.0x_08X
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x20]
call fcn.10002bb0
add esp, 4
push eax
mov ecx, dword [ebp - 0x1a84]
call fcn.10002be0
push eax
lea eax, [ebp - 0x29c]
push eax
mov edx, str.0x_08X
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x18]
call fcn.10002bb0
add esp, 4
push eax
lea eax, [ebp - 0x274]
push eax
mov edx, 0x10086814
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x22c]
call fcn.10002bb0
add esp, 4
push eax
lea eax, [ebp - 0x24c]
push eax
mov edx, 0x10086814
mov ecx, dword [ebp - 0x1a74]
call fcn.10002bb0
add esp, 4
push eax
mov eax, dword [ebp - 0x1a54]
push dword [eax + 4]
lea ecx, [eax + 0x860]
call fcn.10002be0
push eax
lea eax, [ebp - 0x224]
push eax
mov edx, 0x10086814
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x14]
call fcn.10002bb0
add esp, 4
push eax
mov ecx, dword [ebp - 0x1a8c]
call fcn.10002be0
push eax
lea eax, [ebp - 0x1fc]
push eax
mov edx, 0x10086814
mov eax, dword [ebp - 0x1a54]
mov ecx, dword [eax + 0x10]
call fcn.10002bb0
add esp, 4
push eax
mov ecx, dword [ebp - 0x1a80]
call fcn.10002be0
push eax
mov eax, esi
shl eax, 4
sub eax, esi
shl eax, 2
mov ecx, dword [ebp - 0x1a60]
sub ecx, eax
push ecx
push esi
mov eax, dword [ebp - 0x1a64]
movzx eax, ax
push eax
movzx eax, word [ebp - 0x1996]
push eax
movzx eax, word [ebp - 0x1998]
push eax
movzx eax, word [ebp - 0x199a]
push eax
movzx eax, word [ebp - 0x199c]
push eax
movzx eax, word [ebp - 0x199e]
push eax
movzx eax, word [ebp - 0x19a2]
push eax
movzx eax, word [ebp - 0x19a4]
push eax
push str.__04d__02d__02dT_02d:_02d:_02d._03d_c_02d:_02d____s____s____s____s____s____d____s____s____s____s____s____s____s____s____s____s____s____s____s__r_n
lea eax, [ebp - 0x1994]
push eax
call fcn.10004f20
add esp, 0x7c
push 0
push 0x80
push 4
push 0
push 1
push 4
lea eax, [ebp - 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1a78], esi
cmp esi, 0xffffffff
jne 0x10003441
push str.Retry_alert_file_open_n
call edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esi
jne 0x10003441
mov eax, ebx
dec ebx
mov dword [ebp - 0x1a90], ebx
test eax, eax
jne 0x10003330
cmp esi, esi
jne 0x10003441
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
add eax, 0x1e
mov dword [ebp - 0x1a64], eax
call ebx
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x100033cb
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call edi
jmp 0x10003423
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10003406
mov byte [esi + 0xffff], 0
push esi
push str.MbaeAlertLog
push 1
mov edx, 0x258
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000341a
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call edi
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, dword [ebp - 0x1a64]
jmp 0x100035de
lea ecx, [ebp - 0x1994]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003450
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ebp - 0x1a70]
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1994]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100034ba
lea eax, [ebp - 0x1994]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003487
sub eax, edx
sar eax, 1
add eax, eax
cmp dword [ebp - 0x1a70], eax
jne 0x100034ba
mov dword [ebp - 4], 0
call fcn.1000352f
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x100035de
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
add eax, 0x1e
mov dword [ebp - 0x1a64], eax
call ebx
lea ebx, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x100033b5
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10003406
mov byte [esi + 0xffff], 0
push esi
push str.MbaeAlertLog
push 1
mov edx, 0x25c
mov ecx, str.....mbae_commonMbaeLog.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000341a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret