Function at 0x4040b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x38], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0x34], ax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 7
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 7
call fcn.004058e0
add esp, 8
test edi, edi
jne 0x40415d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push 0x57
push str.ComposeUserAgent
push 0x7b
push str.c:devdragon_release_sync_srccore_newapiupdateservicepaar_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x7b
jmp 0x4041bb
test esi, esi
jne 0x4041e6
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push 0x57
push str.ComposeUserAgent
push 0x7e
push str.c:devdragon_release_sync_srccore_newapiupdateservicepaar_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x7e
push str.ComposeUserAgent
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x4041d5
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
mov esi, 0x57
jmp 0x4042f4
mov edx, edi
lea ecx, [edx + 2]
jmp 0x4041f0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4041f0
sub edx, ecx
mov ecx, esi
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404204
sub ecx, ebx
mov ebx, dword [ebp - 0x24]
sar ecx, 1
add ebx, 0x110
add ecx, dword [ebp - 0xc]
add ecx, edx
add ebx, ecx
push 2
push ebx
call fcn.00536986
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
test edx, edx
jne 0x4042c1
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push 8
push str.ComposeUserAgent
push 0x84
push str.c:devdragon_release_sync_srccore_newapiupdateservicepaar_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x84
push str.ComposeUserAgent
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x4042b3
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
mov esi, 8
jmp 0x4042f4
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
push ecx
cmovae eax, dword [ebp - 0x34]
push esi
push eax
push edi
push str.User_Agent:
push str._s_s__s__s__s
lea eax, [ebx + ebx]
push eax
push edx
call fcn.004064a0
add esp, 0x20
xor esi, esi
cmp dword [ebp - 8], 8
jb 0x404305
push dword [ebp - 0x1c]
call fcn.0041e8e8
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
jb 0x40432a
push dword [ebp - 0x34]
call fcn.0041e8e8
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536ab6
mov esp, ebp
pop ebp
ret