Function at 0x412f25
Capabilities:
Delete file

Disassembly:
mov eax, 0x6315c6
call fcn.0060d220
mov eax, 0x1508
call fcn.005bc5e0
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 0x4137e2
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x264]
call fcn.004030bf
mov esi, eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x280]
call fcn.004030bf
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
push 0x67877c
call fcn.005b5201
pop ecx
push eax
mov eax, esi
call fcn.00402101
mov ecx, dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.00401fff
mov byte [ebp - 4], 2
push 0x684b70
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f232
add esp, 0xc
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.0040337f
mov byte [ebp - 4], 5
push edi
push 1
lea ecx, [ebp - 0x280]
call fcn.0040337f
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x264]
call fcn.0040337f
mov eax, dword [0x6f2e50]
push str.TORRENT_PATCH_INIT
push ecx
mov dword [ebp - 0x14], eax
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
mov esi, ebx
call fcn.0041546a
push ebx
call fcn.004153f7
mov esi, dword [ebp - 0x14]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x18], 8
jb 0x41303c
mov eax, dword [eax + 4]
jmp 0x41303f
add eax, 4
push eax
lea ecx, [ebp - 0x4c]
call fcn.004030bf
mov byte [ebp - 4], 7
add esi, 0xc0
cmp dword [esi + 0x18], 8
jb 0x41305d
mov esi, dword [esi + 4]
jmp 0x413060
add esi, 4
push esi
lea ecx, [ebp - 0x30]
call fcn.004030bf
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.004189fa
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.004189fa
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.004189fa
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x6c], 0xf
call fcn.00403827
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4130c0
lea eax, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00408d5a
add esp, 0xc
test al, al
je 0x413121
push edi
push edi
lea eax, [ebp - 0x3cc]
push eax
push ebx
mov ecx, esi
lea edx, [ebp - 0x84]
call fcn.00414bae
test al, al
jne 0x413126
push str.XML_PARSING_ERROR
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.004225f0
mov byte [ebp - 4], 0xb
xor edi, edi
xor esi, esi
inc esi
jmp 0x413778
call fcn.004224c0
push edi
push str.CONFIG_LOADING
call fcn.00402e56
mov esi, eax
call fcn.00405362
push eax
mov esi, ebx
call fcn.00415486
fld dword [0x68f5e8]
push ebx
fstp dword [ebx + 0x21c]
call fcn.004153f7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
jne 0x413163
mov byte [ebp - 4], 0xb
jmp 0x413119
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xac], 0xf
call fcn.00403827
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x413189
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.004030bf
mov byte [ebp - 4], 0xe
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00408e7b
add esp, 0xc
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.0040337f
cmp byte [ebp + 0xb], 0
je 0x41373e
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.00414bae
test al, al
jne 0x413225
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4131f6
lea eax, [ebp - 0x48]
push eax
push str.XML_PARSING_ERROR
call fcn.00402e56
mov esi, eax
call fcn.00405362
mov ecx, dword [ebp + 0xc]
push eax
push 0x68556c
push 2
pop esi
call fcn.00422620
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x413764
push edi
push str.CONFIG_APPYING
call fcn.00402e56
mov esi, eax
call fcn.00405362
push eax
mov esi, ebx
call fcn.00415486
fld1
push ebx
fstp dword [ebx + 0x21c]
call fcn.004153f7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x41321c
mov eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x31c]
jbe 0x4132d8
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 0x41321c
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4132a3
lea eax, [ebp - 0x2c]
push 0x6855d0
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.005b806d
add esp, 0xc
test eax, eax
jne 0x4132d8
push dword [ebp - 0x17c]
push str._torrent_config_notice_ver_d__
push dword [ebp + 0xc]
call fcn.005b9e9c
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b59ef
pop ecx
mov eax, dword [ebp - 0x2cc]
cmp eax, dword [ebp - 0x414]
jne 0x4132ec
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 0x180], eax
mov eax, dword [ebp - 0x2c8]
cmp eax, dword [ebp - 0x410]
jne 0x413306
mov eax, dword [ebp - 0x128]
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x43c]
jne 0x413320
mov eax, dword [ebp - 0x154]
mov dword [ebx + 0x158], eax
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x438]
jne 0x41333a
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.0040a48d
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040683e
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
push 0xffffffffffffffff
push edi
lea esi, [ebx + 0x9c]
push eax
mov ecx, esi
call fcn.00403484
mov byte [ebp - 4], 0xf
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.0040337f
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0xe0]
call fcn.0040337f
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040683e
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebx + 0x114]
call fcn.00403484
mov byte [ebp - 4], 0x11
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xe0]
call fcn.0040337f
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.0040337f
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.00403484
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1a8]
call fcn.00403843
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040683e
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], 8
jb 0x4134ee
mov eax, dword [eax + 4]
jmp 0x4134f1
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 0x413521
cmp dword [ebp + 0xc], edi
jne 0x4134fe
xor eax, eax
mov word [ebp - 0x916], ax
mov byte [ebp - 4], 0x13
push edi
push esi
lea ecx, [ebp - 0xe0]
call fcn.0040337f
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.0040337f
lea edi, [ebp - 0xd14]
call fcn.00420d80
mov eax, edi
lea esi, [ebx + 0xd8]
push eax
mov ecx, esi
call fcn.004030a2
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f28a
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040683e
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x413597
mov eax, dword [eax + 4]
jmp 0x41359a
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 0x4135c5
test edi, edi
jne 0x4135a5
xor eax, eax
mov word [ebp - 0x516], ax
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xe0]
call fcn.0040337f
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0040337f
lea edi, [ebp - 0x914]
call fcn.00420d80
mov eax, edi
push eax
lea ecx, [ebx + 0xf4]
call fcn.004030a2
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 0x413631
cmp dword [esi + 0x18], 8
jb 0x413627
mov esi, dword [esi + 4]
jmp 0x41362a
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00413fd7
test byte [0x71b750], 1
mov byte [ebp + 0xf], al
jne 0x4136b5
push ebx
call fcn.00413fd7
movzx eax, al
push eax
push ebx
call fcn.0041454d
cmp al, 1
jne 0x413667
mov edi, ebx
call fcn.0041434f
xor edi, edi
cmp al, 1
jne 0x413667
mov byte [ebp + 0xf], al
cmp byte [ebp + 0xf], 0
je 0x4136b5
push ebx
call fcn.00413fd7
test al, al
je 0x4136ae
push ebx
call fcn.00414021
test al, al
jne 0x4136ae
push str.NEW_PATCH_UNKNOWN_ERROR
lea ecx, [ebp - 0x68]
call fcn.004030bf
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.0040337f
jmp 0x4136b5
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.00403762
mov byte [ebp - 4], 0xb
push edi
push esi
lea ecx, [ebp - 0x84]
call fcn.00403762
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.004120cc
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.004120cc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.004120cc
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.0040337f
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040337f
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040337f
mov eax, esi
jmp 0x4137e4
push str.REMOTE_CONFIG_OPEN_ERROR
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.004225f0
mov byte [ebp - 4], 0xc
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xc4]
call fcn.00403762
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
push esi
call fcn.00403762
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.004120cc
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.004120cc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.004120cc
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.0040337f
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040337f
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040337f
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8