Function at 0x40d540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c2b50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0xc8
xor ecx, ecx
xor esi, esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40d615
push str._n______________________________________________________________________________________________n
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
push 0x800
call fcn.005369fe
mov esi, eax
push 0x800
push 0
push esi
call fcn.00537300
push 0x57
push str.GetTargeFile
push 0xf6
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicewinhttp_update_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 0xf6
push str.GetTargeFile
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x40d5f7
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40d633
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d621
sub ecx, edi
sar ecx, 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push 1
push dword [ebp + 0xc]
mov ecx, eax
call fcn.0042160b
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004218f5
mov eax, dword [ebp - 0x1c]
cmp eax, 0x12e
jne 0x40d7cd
lea ecx, [ebp - 0x14]
call fcn.0040b990
push 0
lea eax, [ebp - 0x14]
push eax
push 0x16
mov ecx, dword [edi]
call fcn.00421851
push 0
push str.Location:
lea ecx, [ebp - 0x14]
call fcn.0040d2d0
cmp eax, 0xffffffff
jne 0x40d73a
push str._n______________________________________________________________________________________________n
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push 0x800
call fcn.005369fe
mov edi, eax
push 0x800
push 0
push edi
call fcn.00537300
push 0x57
push str.GetTargeFile
push 0x109
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicewinhttp_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push edi
call fcn.00406430
add esp, 0x30
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x109
push str.GetTargeFile
call fcn.00404610
add esp, 0xc
test edi, edi
je 0x40d710
push edi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
lea ecx, [ebp - 0x14]
call fcn.0040ba10
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax + 0xa]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040de40
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ba50
lea ecx, [ebp - 0x20]
call fcn.0040ba10
push 0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.0040d310
test eax, eax
jle 0x40d795
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040da10
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ba50
lea ecx, [ebp - 0x20]
call fcn.0040ba10
push str._n_Redirect_triggered__n
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 1
lea ecx, [ebp - 0x14]
call fcn.0040d3d0
push eax
mov ecx, dword [ebp + 8]
call fcn.0042160b
mov dword [edi], eax
lea ecx, [ebp - 0x14]
call fcn.0040ba10
jmp 0x40d8ec
cmp eax, 0x194
jne 0x40d877
mov esi, 0x54f
mov dword [ebp - 0x18], esi
push str._n______________________________________________________________________________________________n
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push 0x800
call fcn.005369fe
mov edi, eax
push 0x800
push 0
push edi
call fcn.00537300
push esi
push str.GetTargeFile
push pe_nt_image_headers32
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicewinhttp_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push edi
call fcn.00406430
add esp, 0x30
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push pe_nt_image_headers32
push str.GetTargeFile
call fcn.00404610
add esp, 0xc
test edi, edi
je 0x40d855
push edi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x190
jne 0x40d8e6
mov esi, 0x54f
mov dword [ebp - 0x18], esi
push str._n______________________________________________________________________________________________n
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push 0x800
call fcn.005369fe
mov edi, eax
push 0x800
push 0
push edi
call fcn.00537300
push esi
push str.GetTargeFile
push 0x11d
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicewinhttp_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push edi
call fcn.00406430
add esp, 0x30
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x11d
jmp 0x40d83b
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi], 0
jne 0x40d71f
mov esi, 0x54f
mov dword [ebp - 0x18], esi
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
mov edi, eax
push 0x800
push 0
push edi
call fcn.00537300
push esi
push str.GetTargeFile
push 0x123
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicewinhttp_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push edi
call fcn.00406430
add esp, 0x30
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x123
jmp 0x40d83b