Function at 0x10038cb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1cc7
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x538]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x258]
or eax, dword [edi + 0x25c]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 1
je 0x10038e2d
cmp byte [edi + 0x1f8], 0
je 0x10038e3a
lea eax, [ecx + 0x14]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x10038d38
mov eax, dword [eax]
test eax, eax
je 0x10038d38
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x540], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax]
add esi, 0x18
nop
cmp esi, esi
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], ecx
je 0x10038d61
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x2c]
je 0x10038df6
cmp ebx, dword [esi + 4]
jne 0x10038d76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x138]
cmp edx, dword [ebx + 0x140]
jne 0x10038da0
mov eax, dword [edi + 0x258]
cmp eax, dword [ebx + 0x260]
jne 0x10038da0
mov ecx, dword [edi + 0x25c]
cmp ecx, dword [ebx + 0x264]
je 0x10038daf
cmp ebx, dword [esi + 4]
jne 0x10038dab
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x10038d50
mov esi, dword [edi + 0x264]
test esi, esi
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 0
je 0x10038df6
cmp dword [ebx + 0x26c], esi
je 0x10038dea
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x26c]
test ecx, ecx
je 0x10038de4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebx + 0x26c], esi
mov ecx, dword [edi + 0x268]
mov dword [ebx + 0x270], ecx
mov dword [esp + 0x540], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10038e1e
mov eax, dword [eax]
test eax, eax
je 0x10038e16
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x16], 0
je 0x10039128
mov ecx, dword [esp + 0x18]
cmp byte [edi + 0x1f8], 0
jne 0x10039094
cmp byte [edi + 0x234], 0
jne 0x10039094
cmp dword [edi + 0x138], 0
je 0x10039094
mov ebx, dword [ecx + 0x6c]
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x10038e67
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov dword [esp + 0x540], 1
xor eax, eax
cmp ebx, eax
je 0x10039009
lea ecx, [esp + 0x2bc]
push ecx
call fcn.10037fb0
mov byte [esp + 0x540], 2
mov edx, dword [esp + 0x18]
push edi
push edx
lea esi, [esp + 0x2c4]
call fcn.1003b280
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
mov ecx, ebx
call edx
mov esi, eax
mov dword [esp + 0x518], edx
mov dword [esp + 0x514], esi
mov eax, dword [ebx]
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x28]
push ecx
mov ecx, ebx
call edx
push edi
lea eax, [esp + 0x50]
push eax
call fcn.10039200
mov byte [esp + 0x540], 3
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2a8], ecx
mov dword [esp + 0x2a4], esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x44]
mov ecx, ebx
call eax
test al, al
jne 0x10038f81
mov byte [esp + 0x280], al
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov byte [esp + 0x540], 4
mov esi, 8
cmp dword [edi + 0x174], esi
jb 0x10038f3a
mov eax, dword [edi + 0x160]
jmp 0x10038f40
lea eax, [edi + 0x160]
mov ecx, dword [edi + 0x138]
push eax
push ecx
push str.Flush_to_disk_failed__CMD_d__Item___s_r_n
lea ecx, [esp + 0x3c]
call fcn.1006b330
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x48], esi
jae 0x10038f67
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esp + 0x540], 3
lea esi, [esp + 0x30]
call fcn.10006e70
jmp 0x10038f89
mov byte [esp + 0x280], 1
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x14]
test esi, esi
mov dword [esp + 0x1c], esi
je 0x10038fa5
mov eax, dword [esi]
test eax, eax
je 0x10038fa5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x540], 5
add ebx, 0x18
lea eax, [esp + 0x4c]
call fcn.1003be40
mov byte [esp + 0x540], 3
xor ebx, ebx
cmp esi, ebx
je 0x10038fd8
mov esi, dword [esi]
cmp esi, ebx
je 0x10038fd4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x16], bl
mov byte [esp + 0x540], 2
lea edx, [esp + 0x4c]
push edx
call fcn.100382a0
mov byte [esp + 0x540], 1
lea eax, [esp + 0x2bc]
push eax
call fcn.100382a0
mov ebx, dword [esp + 0x28]
jmp 0x1003907c
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov byte [esp + 0x540], 6
mov esi, 8
cmp dword [edi + 0x174], esi
jb 0x10039037
mov eax, dword [edi + 0x160]
jmp 0x1003903d
lea eax, [edi + 0x160]
mov ecx, dword [edi + 0x138]
push eax
push ecx
push str.REQUEST_IGONORED__Invalid_onlinefav_file_object__CMD_d__Item___s_r_n
lea ecx, [esp + 0x3c]
call fcn.1006b330
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x48], esi
jae 0x10039064
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esp + 0x540], 1
lea esi, [esp + 0x30]
call fcn.10006e70
mov dword [esp + 0x540], 0xffffffff
test ebx, ebx
je 0x10039094
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
cmp byte [esp + 0x16], 0
je 0x10039128
mov eax, dword [esp + 0x18]
add eax, 0x14
mov dword [esp + 0x1c], eax
je 0x100390b9
mov eax, dword [eax]
test eax, eax
je 0x100390b9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x540], 7
mov eax, dword [esp + 0x18]
add eax, 0x18
cmp byte [ebp + 0xc], 0
push edi
je 0x100390dd
mov eax, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, dword [ebx + 4]
push ecx
jmp 0x100390e4
mov ebx, dword [eax + 4]
mov edx, dword [ebx + 4]
push edx
push ebx
call fcn.1003c1a0
mov ecx, dword [esp + 0x18]
add ecx, 0x18
mov esi, eax
call fcn.1003c250
mov dword [ebx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov dword [esp + 0x540], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10039128
mov eax, dword [eax]
test eax, eax
je 0x10039120
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x17], 0
je 0x100391c6
xor eax, eax
mov ebx, 7
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov esi, 8
mov dword [esp + 0x540], esi
cmp dword [edi + 0x174], esi
jb 0x10039163
mov eax, dword [edi + 0x160]
jmp 0x10039169
lea eax, [edi + 0x160]
push eax
mov eax, dword [edi + 0x138]
push eax
push str.REQUEST_IGONORED__Duplicate_onlinefav_request__CMD_d__Item___s_r_n
lea ecx, [esp + 0x3c]
call fcn.1006b330
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x48], esi
jae 0x10039190
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esp + 0x540], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x100391b5
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
jmp 0x100391d8
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x100391d8
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x520]
xor ecx, esp
call fcn.1009176c
mov esp, ebp
pop ebp
ret 8