Function at 0x413206
Capabilities:
Delete file

Disassembly:
mov eax, 0x56cedb
call fcn.0055a6a0
mov eax, 0x1508
call fcn.0050b430
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x800
lea eax, [ebp - 0x1514]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x413ab3
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x264]
call fcn.004027e7
mov esi, eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x280]
call fcn.004027e7
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
push 0x5b0bcc
call fcn.00504d8b
pop ecx
push eax
mov eax, esi
call fcn.00402190
mov ecx, dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.0040208e
mov byte [ebp - 4], 2
push 0x5bcda8
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f683
add esp, 0xc
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00403580
mov byte [ebp - 4], 5
push edi
push 1
lea ecx, [ebp - 0x280]
call fcn.00403580
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x264]
call fcn.00403580
fldz
mov eax, dword [0x5f9648]
push ecx
fstp dword [esp]
push str.TORRENT_PATCH_INIT
mov dword [ebp - 0x14], eax
call fcn.004032e1
mov esi, eax
call fcn.0040582a
push eax
mov esi, ebx
call fcn.004154f1
push ebx
call fcn.0041547e
mov esi, dword [ebp - 0x14]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x18], 8
jb 0x413321
mov eax, dword [eax + 4]
jmp 0x413324
add eax, 4
push eax
lea ecx, [ebp - 0x4c]
call fcn.004027e7
mov byte [ebp - 4], 7
add esi, 0xc0
cmp dword [esi + 0x18], 8
jb 0x413342
mov esi, dword [esi + 4]
jmp 0x413345
add esi, 4
push esi
lea ecx, [ebp - 0x30]
call fcn.004027e7
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.00418917
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.00418917
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.00418917
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x6c], 0xf
call fcn.00403a65
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4133a5
lea eax, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040941a
add esp, 0xc
test al, al
je 0x413406
push edi
push edi
lea eax, [ebp - 0x3cc]
push eax
push ebx
mov ecx, esi
lea edx, [ebp - 0x84]
call fcn.00414c0a
test al, al
jne 0x41340b
push str.XML_PARSING_ERROR
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.00420460
mov byte [ebp - 4], 0xb
xor edi, edi
xor esi, esi
inc esi
jmp 0x413a49
call fcn.00420330
push edi
push str.CONFIG_LOADING
call fcn.004032e1
mov esi, eax
call fcn.0040582a
push eax
mov esi, ebx
call fcn.00415524
push ebx
call fcn.0041547e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
jne 0x41343c
mov byte [ebp - 4], 0xb
jmp 0x4133fe
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xac], 0xf
call fcn.00403a65
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x413462
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.004027e7
mov byte [ebp - 4], 0xe
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00409513
add esp, 0xc
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403580
cmp byte [ebp + 0xb], 0
je 0x413a0f
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebx + 0x34]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
lea edx, [ebp - 0xc4]
call fcn.00414c0a
test al, al
jne 0x4134fe
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4134cf
lea eax, [ebp - 0x48]
push eax
push str.XML_PARSING_ERROR
call fcn.004032e1
mov esi, eax
call fcn.0040582a
mov ecx, dword [ebp + 0xc]
push eax
push str._s:__s
push 2
pop esi
call fcn.00420490
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x413a35
push edi
push str.CONFIG_APPYING
call fcn.004032e1
mov esi, eax
call fcn.0040582a
push eax
mov esi, ebx
call fcn.00415524
push ebx
call fcn.0041547e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x4134f5
mov eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x31c]
jbe 0x4135a9
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0xa8]
push ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
test al, al
je 0x4134f5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x413574
lea eax, [ebp - 0x2c]
push 0x5bd808
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.005079fd
add esp, 0xc
test eax, eax
jne 0x4135a9
push dword [ebp - 0x17c]
push str._torrent_config_notice_ver_d__
push dword [ebp + 0xc]
call fcn.00509755
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0050537f
pop ecx
mov eax, dword [ebp - 0x2cc]
cmp eax, dword [ebp - 0x414]
jne 0x4135bd
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 0x180], eax
mov eax, dword [ebp - 0x2c8]
cmp eax, dword [ebp - 0x410]
jne 0x4135d7
mov eax, dword [ebp - 0x128]
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x43c]
jne 0x4135f1
mov eax, dword [ebp - 0x154]
mov dword [ebx + 0x158], eax
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x438]
jne 0x41360b
mov eax, dword [ebp - 0x150]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebx + 0x160], eax
mov eax, dword [ebp - 0x148]
mov dword [ebx + 0x164], eax
mov eax, dword [ebp - 0x144]
mov dword [ebx + 0x168], eax
mov eax, dword [ebp - 0x140]
mov dword [ebx + 0x16c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebx + 0x170], eax
mov al, byte [ebp - 0x134]
mov byte [ebx + 0x178], al
mov al, byte [ebp - 0x1f4]
mov byte [ebx + 0xb8], al
mov al, byte [ebp - 0x1f3]
mov byte [ebx + 0xb9], al
lea ecx, [ebx + 0x190]
lea eax, [ebp - 0x11c]
call fcn.0040a872
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040f6db
add esp, 0xc
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406e82
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
push 0xffffffffffffffff
push edi
lea esi, [ebx + 0x9c]
push eax
mov ecx, esi
call fcn.00403685
mov byte [ebp - 4], 0xf
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403580
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0xe0]
call fcn.00403580
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040f6db
add esp, 0xc
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406e82
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebx + 0x114]
call fcn.00403685
mov byte [ebp - 4], 0x11
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xe0]
call fcn.00403580
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00403580
mov eax, dword [ebp - 0x138]
mov dword [ebx + 0x174], eax
mov eax, dword [ebp - 0x19c]
push 0xffffffffffffffff
mov dword [ebx + 0x110], eax
push edi
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebx + 0xbc]
call fcn.00403685
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1a8]
call fcn.00403a81
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f6db
add esp, 0xc
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406e82
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], 8
jb 0x4137bf
mov eax, dword [eax + 4]
jmp 0x4137c2
add eax, 4
lea edx, [ebp - 0xd14]
mov dword [ebp + 0xc], 0x200
movzx ecx, word [eax]
dec dword [ebp + 0xc]
mov word [edx], cx
inc edx
inc edx
movzx ecx, cx
inc eax
inc eax
cmp cx, di
je 0x4137f2
cmp dword [ebp + 0xc], edi
jne 0x4137cf
xor eax, eax
mov word [ebp - 0x916], ax
mov byte [ebp - 4], 0x13
push edi
push esi
lea ecx, [ebp - 0xe0]
call fcn.00403580
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00403580
lea edi, [ebp - 0xd14]
call fcn.0041ec10
mov eax, edi
lea esi, [ebx + 0xd8]
push eax
mov ecx, esi
call fcn.004027ca
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f6db
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406e82
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x413868
mov eax, dword [eax + 4]
jmp 0x41386b
add eax, 4
lea edx, [ebp - 0x914]
mov edi, 0x200
movzx ecx, word [eax]
dec edi
mov word [edx], cx
inc edx
inc edx
movzx ecx, cx
inc eax
inc eax
test cx, cx
je 0x413896
test edi, edi
jne 0x413876
xor eax, eax
mov word [ebp - 0x516], ax
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xe0]
call fcn.00403580
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.00403580
lea edi, [ebp - 0x914]
call fcn.0041ec10
mov eax, edi
push eax
lea ecx, [ebx + 0xf4]
call fcn.004027ca
mov eax, dword [ebx]
lea ecx, [ebx + 0x80]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp dword [eax + 0x114], edi
je 0x413902
cmp dword [esi + 0x18], 8
jb 0x4138f8
mov esi, dword [esi + 4]
jmp 0x4138fb
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0041411c
test byte [0x621ea0], 1
mov byte [ebp + 0xf], al
jne 0x413986
push ebx
call fcn.0041411c
movzx eax, al
push eax
push ebx
call fcn.00414692
cmp al, 1
jne 0x413938
mov edi, ebx
call fcn.00414494
xor edi, edi
cmp al, 1
jne 0x413938
mov byte [ebp + 0xf], al
cmp byte [ebp + 0xf], 0
je 0x413986
push ebx
call fcn.0041411c
test al, al
je 0x41397f
push ebx
call fcn.00414166
test al, al
jne 0x41397f
push str.NEW_PATCH_UNKNOWN_ERROR
lea ecx, [ebp - 0x68]
call fcn.004027e7
mov byte [ebp - 4], 0x17
mov eax, dword [ebx]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403580
jmp 0x413986
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov byte [ebp - 4], 0xc
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xc4]
call fcn.004039a0
mov byte [ebp - 4], 0xb
push edi
push esi
lea ecx, [ebp - 0x84]
call fcn.004039a0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.0041244b
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.0041244b
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.0041244b
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00403580
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403580
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.00403580
mov eax, esi
jmp 0x413ab5
push str.REMOTE_CONFIG_OPEN_ERROR
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.00420460
mov byte [ebp - 4], 0xc
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xc4]
call fcn.004039a0
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
push esi
call fcn.004039a0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.0041244b
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.0041244b
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.0041244b
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00403580
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403580
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.00403580
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8