Function at 0x408450
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202d7
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], ebx
test ebx, ebx
je 0x40874c
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.00403c40
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
mov ecx, 0x424a8c
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4084e6
test dx, dx
je 0x4084e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4084e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4084c0
xor eax, eax
jmp 0x4084eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x408729
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
push esi
push str._SETUP__begin_Download_lUrl_:_s
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00403920
mov eax, dword [ebp - 0x224]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.00410020
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00401fe0
mov byte [ebp - 4], 2
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x220]
call fcn.004028f0
push 4
push str..exe
call fcn.004028f0
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4085cb
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x220]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
mov ebx, edx
or ecx, eax
jge 0x4085ef
xor eax, eax
lea ecx, [ebp - 0x22c]
call fcn.00402a90
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x230]
push esi
add eax, 0x30
call fcn.0040cc40
test eax, eax
je 0x4086dd
push esi
push str._SETUP__Download_lUrl_:_s_success.
lea edi, [ebp - 0x224]
call fcn.00403920
mov eax, dword [ebp - 0x224]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebx + 0x1c]
push ecx
sub eax, 0x10
mov dword [ebp - 0x234], esp
mov edi, esp
call fcn.00403c40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov edi, esp
call fcn.00403c40
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00408260
test eax, eax
je 0x4086dd
mov eax, dword [ebp - 0x220]
push 0
push eax
call fcn.004096b0
test al, al
je 0x4086dd
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 4
mov ecx, dword [ebx]
mov edx, dword [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x2c]
push edx
mov edx, dword [eax + 0x28]
push ecx
push edx
push str.http:__tuijian.bd.baofeng.com_banding_servlet_BDSuccess
push str._s_ver_sditchid_suid_ssoftid_d
lea edi, [ebp - 0x228]
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov ecx, edi
call fcn.00402090
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40874c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret 4