Function at 0x410810
Capabilities:
Print debug messages
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
dec eax
push edi
mov edi, 0x4ab678
cmp eax, 3
ja case.default.0x410830
jmp dword [eax*4 + 0x410b74]
mov edi, 0x4ab664
jmp case.default.0x410830
mov edi, 0x4ab628
jmp case.default.0x410830
mov edi, 0x4ab63c
jmp case.default.0x410830
mov edi, 0x4ab650
push 0
push 0x80
push 3
push 0
xor ebx, ebx
mov dword [ebp - 0x34], 0
cmp dword [edi + 0x10], ebx
push 0
push 0x80000000
sete bl
push 0x47e844
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x4108a5
push str.C:_bambooxml_data_build_dirCRED_CBV99_JOB1_srcBaseComponentCmgClientCommonLib_srcMyDebug.cpp:FlushQueuedLogMessages_CEF____error_opening_CEF_device_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x30], 1
jbe 0x410b0f
push esi
mov edx, dword [edi + 8]
mov esi, dword [edi + 4]
mov ecx, dword [edi + 0xc]
lea eax, [edx - 1]
and eax, ecx
mov ebx, dword [esi + eax*4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
jb 0x4108eb
mov ebx, dword [ebx]
cmp eax, 8
jae 0x410900
movups xmm0, xmmword [ebx]
mov dword [ebp - 8], 7
movups xmmword [ebp - 0x1c], xmm0
jmp 0x410948
mov esi, eax
lea ecx, [ebp - 0x1c]
or esi, 7
mov eax, 0x7ffffffe
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402b70
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push ecx
call fcn.0042ebb0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [ebp - 8], esi
mov esi, dword [edi + 4]
mov dword [ebp - 0xc], eax
lea eax, [edx - 1]
and eax, ecx
push dword [esi + eax*4]
push edi
call fcn.0040ce80
add esp, 8
add dword [edi + 0x10], 0xffffffff
jne 0x41096b
mov dword [edi + 0xc], 0
jmp 0x41096e
inc dword [edi + 0xc]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov dword [ebp - 0x20], eax
mov ebx, 1
cmovg ebx, eax
add ebx, 0x18
push ebx
call fcn.004360b7
mov esi, eax
add esp, 4
test esi, esi
je 0x410a96
push ebx
push 0
push esi
call fcn.0042e960
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0x18
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
jle 0x410a46
cmp dword [ebp - 8], 8
lea ecx, [esi + 0x18]
push 0
push 0
push eax
push ecx
push 0xffffffffffffffff
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
cmovae ebx, dword [ebp - 0x1c]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x410a46
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a22
sub ecx, edx
lea eax, [esi + 0x18]
sar ecx, 1
push ecx
push ebx
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00437be4
add esp, 0x14
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push dword [esi]
push esi
push 0x83210124
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410a77
push esi
mov dword [ebp - 0x28], 1
call fcn.0043609c
add esp, 4
jmp 0x410aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FlushQueuedLogMessages_CEF:_error_0x_x_writing_message_n
call fcn.004127b0
add esp, 8
push esi
call fcn.0043609c
add esp, 4
jmp 0x410aa1
push str.FlushQueuedLogMessages_CEF:_memory_allocation_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x28]
je 0x410aae
test ebx, ebx
je 0x410b28
mov dword [ebp - 0x30], 0
test ebx, ebx
jne 0x410acb
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x410b01
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410af7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6d
push edx
push ecx
call fcn.00428a50
add esp, 8
cmp dword [edi + 0x10], 0
ja 0x4108b7
mov eax, dword [ebp - 0x24]
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.00428a63
mov esp, ebp
pop ebp
ret
push str.FlushQueuedLogMessages_CEF:_exit_loop_on_error_n
call fcn.004127b0
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x410b0b
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410b6d
push edx
push ecx
call fcn.00428a50
add esp, 8
jmp 0x410b0b
call fcn.00435e90
nop
aaa
or byte [ecx], al
or byte ds:[ecx], al
inc ebp
or byte [ecx], al
dec esp
or byte [ecx], al
int3