Function at 0x43d291
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd04
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
mov dword [ebp - 0xc80], eax
mov eax, dword [ebp + 0x7c]
push esi
push edi
mov dword [ebp - 0xc94], eax
xor eax, eax
push 0x206
mov word [ebp - 0x458], ax
xor ebx, ebx
lea eax, [ebp - 0x456]
push ebx
push eax
call fcn.00476cc0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4b3140
lea ecx, [ebp - 0xc74]
call fcn.004018f6
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xc8c]
push eax
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0xc84], ebx
mov dword [ebp - 0xc88], ebx
mov dword [ebp - 0xc8c], ebx
mov dword [ebp - 0xc90], ebx
call fcn.004033d3
xor eax, eax
push 0x7e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00476cc0
push dword [ebp - 0xc8c]
mov esi, 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 esi
add esp, 0x34
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xc74]
call fcn.00401aaf
lea eax, [ebp - 0xc7c]
push eax
mov dword [ebp - 0xc7c], ebx
call fcn.00402a17
mov ecx, eax
call fcn.00402c4e
xor eax, eax
push 0x7fe
mov word [ebp - 0xc58], ax
lea eax, [ebp - 0xc56]
push ebx
push eax
call fcn.00476cc0
add esp, 0xc
cmp dword [ebp - 0xc7c], 4
jne 0x43d3e9
push ebx
push 1
lea ecx, [ebp - 0xc74]
call fcn.00401ad3
xor al, al
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
add ebp, 0x70
leave
ret 8
cmp dword [ebp - 0xc7c], 1
mov eax, dword [ebp - 0xc70]
jne 0x43d40f
cmp dword [ebp - 0xc5c], 8
jae 0x43d407
lea eax, [ebp - 0xc70]
push eax
push str.http:__plugin.xl7.xunlei.com_client_XLInstallPackage_155__s.cfg
jmp 0x43d424
cmp dword [ebp - 0xc5c], 8
jae 0x43d41e
lea eax, [ebp - 0xc70]
push eax
push str.http:__plugin.xl7.xunlei.com_client_XLInstallPackage__s.cfg
lea eax, [ebp - 0xc58]
push eax
call esi
mov eax, dword [ebp - 0xc94]
add esp, 0xc
cmp dword [eax + 0x18], 8
push 0xc
pop ecx
mov esi, str.InstallBindingConfig.cfg
lea edi, [ebp + 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jb 0x43d450
mov eax, dword [eax + 4]
jmp 0x43d453
add eax, 4
mov esi, dword [ebp - 0xc80]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x43d466
mov ecx, dword [edi]
jmp 0x43d468
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call fcn.004074cf
mov ecx, eax
call fcn.004074f5
test eax, eax
je 0x43d49d
mov byte [ebp - 0xc75], bl
push ebx
push 1
lea ecx, [ebp - 0xc74]
call fcn.00401ad3
mov al, byte [ebp - 0xc75]
jmp 0x43d3d5
xor eax, eax
push 0x206
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push ebx
push eax
call fcn.00476cc0
push 0x208
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.00476cc0
add esp, 0x18
cmp dword [esi + 0x18], 8
jb 0x43d4d7
mov eax, dword [edi]
jmp 0x43d4d9
mov eax, edi
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 esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.ThunderInstall_DownloadBindingConfig_Event
push ebx
push 1
push ebx
call esi
push 0x4b3fb0
push ebx
push 1
push ebx
call esi
push 0x5c
call fcn.00476d64
mov esi, eax
pop ecx
cmp esi, ebx
je 0x43d531
mov ecx, esi
call fcn.0043cb86
mov dword [esi], vtable.CBindConfigFileDownloadItem.0
jmp 0x43d533
xor esi, esi
mov eax, dword [ebp - 0xc80]
cmp dword [eax + 0x18], 8
jb 0x43d541
mov edi, dword [edi]
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004018f6
sub esp, 0x1c
mov ecx, esp
push edi
call fcn.004018f6
sub esp, 0x1c
lea eax, [ebp - 0xc58]
mov ecx, esp
push eax
call fcn.004018f6
mov ecx, esi
call fcn.0043ccfe
push esi
call fcn.00413d30
mov ecx, eax
call fcn.00413d56
mov byte [ebp - 0xc75], 1
jmp 0x43d484