Function at 0x1001c590
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090338
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x234
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 edi, ecx
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push eax
lea eax, [ebp - 0x222]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 1
cmp dword [edi + 0x62c0], eax
je 0x1001c6d8
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001c65e
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001c6bb
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 8
test eax, eax
jle 0x1001c69a
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x419
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001c6b2
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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, 8
jmp 0x1001cc1e
push str.mbae_svc.dat
push 0x100e1fb0
push 0x10086350
lea eax, [ebp - 0x224]
push eax
call fcn.10004ed0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x23c], esi
cmp esi, 0xffffffff
jne 0x1001c7cd
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001c753
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001c7b0
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 9
test eax, eax
jle 0x1001c78f
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x41f
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001c7a7
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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, 9
jmp 0x1001cc1e
push 0
lea eax, [ebp - 0x238]
push eax
push 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ca99
cmp dword [ebp - 0x238], 0xc
jne 0x1001ca99
cmp dword [ebp - 0x230], 0x140004
jne 0x1001c9dc
cmp dword [ebp - 0x22c], 0x1908
jne 0x1001c9dc
mov eax, dword [ebp - 0x228]
add eax, 0x64
mov dword [ebp - 0x244], eax
imul eax, eax, 0x1908
mov dword [ebp - 0x240], eax
add eax, 0xa
push eax
call fcn.1005218a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x234], ebx
test ebx, ebx
jne 0x1001c8f9
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001c87f
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001c8dc
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x1001c8bb
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x431
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001c8d3
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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, 5
jmp 0x1001cc1e
push dword [ebp - 0x240]
push 0
push ebx
call fcn.10055aa0
add esp, 0xc
push 0
lea eax, [ebp - 0x238]
push eax
imul eax, dword [ebp - 0x228], 0x1908
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c974
mov ecx, dword [ebp - 0x228]
imul eax, ecx, 0x1908
cmp dword [ebp - 0x238], eax
jne 0x1001c974
mov dword [edi + 0x62b8], ecx
mov dword [edi + 0x62c0], ebx
mov eax, dword [ebp - 0x244]
mov dword [edi + 0x62bc], eax
xor edi, edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 4], edi
call fcn.1001cb58
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1001cc1e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1001cabb
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001cb10
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x436
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001cb28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0xffffffff
call fcn.1001d040
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001ca1f
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001ca7c
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 6
test eax, eax
jle 0x1001ca5b
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x42a
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001ca73
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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, 6
jmp 0x1001cc1e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001cad5
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001cb31
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001cb10
mov byte [esi + 0xffff], 0
push esi
push str.LoadReportFile
push 1
mov edx, 0x423
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001cb28
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x1001cc1e
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