Function at 0x439159
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd00
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
cmp dword [eax + 0x18], 8
mov edx, dword [ebp + 0x78]
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, str.InstallBindingConfig.cfg
lea edi, [ebp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc8c], edx
movsw word es:[edi], word [esi]
jb 0x439197
mov eax, dword [eax + 4]
jmp 0x43919a
add eax, 4
cmp dword [edx + 0x18], 8
lea ecx, [edx + 4]
mov dword [ebp - 0xc78], ecx
jb 0x4391ab
mov ecx, dword [ecx]
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call fcn.00407197
mov ecx, eax
call fcn.004071bd
test eax, eax
je 0x4391c8
xor al, al
jmp 0x43940f
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x458], ax
xor esi, esi
lea eax, [ebp - 0x456]
push esi
push eax
call fcn.00470920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4acb48
lea ecx, [ebp - 0xc74]
call fcn.004018f6
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0xc84], esi
mov dword [ebp - 0xc88], esi
mov dword [ebp - 0xc80], esi
mov dword [ebp - 0xc90], esi
call fcn.00403459
xor eax, eax
push 0x7e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push esi
push eax
call fcn.00470920
push dword [ebp - 0xc80]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0xc88]
lea eax, [ebp - 0x48]
push dword [ebp - 0xc84]
push str._d._d._d
push eax
call edi
add esp, 0x34
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xc74]
call fcn.00401a34
lea eax, [ebp - 0xc7c]
push eax
mov dword [ebp - 0xc7c], esi
call fcn.00402a9d
mov ecx, eax
call fcn.00402cd4
xor eax, eax
push 0x7fe
mov word [ebp - 0xc58], ax
lea eax, [ebp - 0xc56]
push esi
push eax
call fcn.00470920
mov eax, dword [ebp - 0xc70]
add esp, 0xc
cmp dword [ebp - 0xc7c], 1
jne 0x4392f0
cmp dword [ebp - 0xc5c], 8
jae 0x4392e8
lea eax, [ebp - 0xc70]
push eax
push str.http:__plugin.xl7.xunlei.com_client_XLInstallPackage_155__s.cfg
jmp 0x439305
cmp dword [ebp - 0xc5c], 8
jae 0x4392ff
lea eax, [ebp - 0xc70]
push eax
push str.http:__plugin.xl7.xunlei.com_client_XLInstallPackage__s.cfg
lea eax, [ebp - 0xc58]
push eax
call edi
add esp, 0xc
xor eax, eax
push ebx
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push esi
push eax
call fcn.00470920
push 0x208
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00470920
mov ebx, dword [ebp - 0xc8c]
mov eax, dword [ebp - 0xc78]
add esp, 0x18
cmp dword [ebx + 0x18], 8
jb 0x439351
mov eax, dword [eax]
lea ecx, [ebp + 0x38]
push ecx
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.ThunderInstall_DownloadBindingConfig_Event
push esi
push 1
push esi
call edi
push 0x4ad720
push esi
push 1
push esi
call edi
push 0x5c
call fcn.004709c4
mov edi, eax
pop ecx
cmp edi, esi
je 0x4393a9
mov ecx, edi
call fcn.00438d93
mov dword [edi], vtable.CBindConfigFileDownloadItem.0
jmp 0x4393ab
xor edi, edi
cmp dword [ebx + 0x18], 8
jb 0x4393bb
mov eax, dword [ebp - 0xc78]
mov ebx, dword [eax]
jmp 0x4393c1
mov ebx, dword [ebp - 0xc78]
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004018f6
sub esp, 0x1c
mov ecx, esp
push ebx
call fcn.004018f6
sub esp, 0x1c
lea eax, [ebp - 0xc58]
mov ecx, esp
push eax
call fcn.004018f6
mov ecx, edi
call fcn.00438f0b
push edi
call fcn.00411834
mov ecx, eax
call fcn.0041185a
push esi
push 1
lea ecx, [ebp - 0xc74]
call fcn.00401a58
mov al, 1
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x70
leave
ret 8