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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090270
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
call fcn.10035450
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0x72
mov dword [ebp - 0x3c], eax
imul esi, eax, 0xa30
lea eax, [esi + 0xa]
push eax
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x1001ac2b
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001aba4
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 0x1001ac01
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x1001abe0
mov byte [esi + 0xffff], 0
push esi
push str.LoadProtectedApplications2
push 1
mov edx, 0x298
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001abf8
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
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call fcn.10055aa0
imul eax, dword [ebx + 0x4264], 0xa30
push eax
push dword [ebx + 0x426c]
push edi
call fcn.10055450
add esp, 0x18
mov esi, dword [ebx + 0x4264]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x2c], eax
nop
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 8]
jae 0x1001af56
imul eax, esi, 0xa30
add edi, eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0x628
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ae96
cmp dword [ebp - 0x28], 0x628
jne 0x1001ae96
xor esi, esi
mov dword [ebp - 0x34], esi
cmp esi, dword [ebx + 0x4264]
jae 0x1001ad19
imul ebx, esi, 0xa30
add ebx, dword [ebp - 0x1c]
push edi
push ebx
call fcn.100513c3
add esp, 8
test eax, eax
je 0x1001acfc
lea eax, [edi + 0x410]
push eax
lea eax, [ebx + 0x410]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
je 0x1001acfc
lea eax, [edi + 0x208]
push eax
lea eax, [ebx + 0x208]
push eax
call fcn.100513c3
add esp, 8
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x1001acff
inc esi
jmp 0x1001aca0
mov ebx, dword [ebp - 0x20]
cmp esi, dword [ebx + 0x4264]
jae 0x1001ad19
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x1c]
jmp 0x1001ac60
mov eax, dword [edi + 0x618]
cmp eax, 8
ja case.default.0x1001ad24
jmp dword [eax*4 + 0x1001b07c]
mov dword [edi + 0x618], 0
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 1
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 2
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 4
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 8
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 0x10
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 0x20
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 0x40
jmp case.default.0x1001ad24
mov dword [edi + 0x618], 0x100
mov dword [edi + 0x62c], 0
mov dword [edi + 0x628], 0
cmp dword [edi + 0x61c], 1
jne 0x1001ae7d
lea ecx, [ebx + 0x4280]
mov edx, edi
call fcn.10037f10
mov edi, eax
test edi, edi
je 0x1001ae7d
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1001adfa
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 0x1001ae56
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001ae35
mov byte [esi + 0xffff], 0
push esi
push str.LoadProtectedApplications2
push 1
mov edx, 0x2db
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001ae4d
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, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x1c]
jmp 0x1001ac60
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 0x1001aed2
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 0x1001af2e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1001af0d
mov byte [esi + 0xffff], 0
push esi
push str.LoadProtectedApplications2
push 1
mov edx, 0x2a3
mov ecx, str...StandAloneSvcAppFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1001af25
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]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x426c]
test eax, eax
je 0x1001af69
push eax
call fcn.10052152
add esp, 4
mov dword [ebx + 0x426c], 0
mov dword [ebx + 0x4264], esi
mov dword [ebx + 0x426c], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x4268], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
call fcn.1001afb3
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret