Function at 0x43d120
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd04
mov eax, dword [0x4c3a10]
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.004766d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4b31c8
lea ecx, [ebp - 0xc74]
call fcn.00401900
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.0040335c
xor eax, eax
push 0x7e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.004766d0
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.00401a3e
lea eax, [ebp - 0xc7c]
push eax
mov dword [ebp - 0xc7c], ebx
call fcn.004029b9
mov ecx, eax
call fcn.00402bf0
xor eax, eax
push 0x7fe
mov word [ebp - 0xc58], ax
lea eax, [ebp - 0xc56]
push ebx
push eax
call fcn.004766d0
add esp, 0xc
cmp dword [ebp - 0xc7c], 4
jne 0x43d278
push ebx
push 1
lea ecx, [ebp - 0xc74]
call fcn.00401a62
xor al, al
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
add ebp, 0x70
leave
ret 8
cmp dword [ebp - 0xc7c], 1
mov eax, dword [ebp - 0xc70]
jne 0x43d29e
cmp dword [ebp - 0xc5c], 8
jae 0x43d296
lea eax, [ebp - 0xc70]
push eax
push str.http:__plugin.xl7.xunlei.com_client_XLInstallPackage_155__s.cfg
jmp 0x43d2b3
cmp dword [ebp - 0xc5c], 8
jae 0x43d2ad
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 0x43d2df
mov eax, dword [eax + 4]
jmp 0x43d2e2
add eax, 4
mov esi, dword [ebp - 0xc80]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x43d2f5
mov ecx, dword [edi]
jmp 0x43d2f7
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call fcn.004073cb
mov ecx, eax
call fcn.004073f1
test eax, eax
je 0x43d32c
mov byte [ebp - 0xc75], bl
push ebx
push 1
lea ecx, [ebp - 0xc74]
call fcn.00401a62
mov al, byte [ebp - 0xc75]
jmp 0x43d264
xor eax, eax
push 0x206
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push ebx
push eax
call fcn.004766d0
push 0x208
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.004766d0
add esp, 0x18
cmp dword [esi + 0x18], 8
jb 0x43d366
mov eax, dword [edi]
jmp 0x43d368
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 str.ThunderInstall_DownloadBindingItems_Event
push ebx
push 1
push ebx
call esi
push 0x7c
call fcn.00476774
mov esi, eax
pop ecx
cmp esi, ebx
je 0x43d3c0
mov ecx, esi
call fcn.0043c985
mov dword [esi], vtable.CBindConfigFileDownloadItem.0
jmp 0x43d3c2
xor esi, esi
mov eax, dword [ebp - 0xc80]
cmp dword [eax + 0x18], 8
jb 0x43d3d0
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
push 0x4b31c8
call fcn.00401900
push ebx
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00401900
sub esp, 0x1c
mov ecx, esp
push edi
call fcn.00401900
sub esp, 0x1c
lea eax, [ebp - 0xc58]
mov ecx, esp
push eax
call fcn.00401900
mov ecx, esi
call fcn.0043cb09
push esi
call fcn.004138b2
mov ecx, eax
call fcn.004138d8
mov byte [ebp - 0xc75], 1
jmp 0x43d313