Function at 0x413338
Capabilities:
Delete file

Disassembly:
mov eax, 0x62ed02
call fcn.0060aa10
mov eax, 0x1508
call fcn.005b9360
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 0x413bf5
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040345f
mov esi, eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1514]
push eax
lea ecx, [ebp - 0x280]
call fcn.0040345f
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
push 0x67663c
call fcn.005b30d0
pop ecx
push eax
mov eax, esi
call fcn.004024d5
mov ecx, dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call fcn.004023d3
mov byte [ebp - 4], 2
push 0x682a78
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f650
add esp, 0xc
mov byte [ebp - 4], 4
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00403747
mov byte [ebp - 4], 5
push edi
push 1
lea ecx, [ebp - 0x280]
call fcn.00403747
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x264]
call fcn.00403747
mov eax, dword [0x6f0d00]
push str.TORRENT_PATCH_INIT
push ecx
mov dword [ebp - 0x14], eax
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push eax
mov esi, ebx
call fcn.0041587d
push ebx
call fcn.0041580a
mov esi, dword [ebp - 0x14]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x18], 8
jb 0x41344f
mov eax, dword [eax + 4]
jmp 0x413452
add eax, 4
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040345f
mov byte [ebp - 4], 7
add esi, 0xc0
cmp dword [esi + 0x18], 8
jb 0x413470
mov esi, dword [esi + 4]
jmp 0x413473
add esi, 4
push esi
lea ecx, [ebp - 0x30]
call fcn.0040345f
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.00418e14
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.00418e14
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.00418e14
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x6c], 0xf
call fcn.00403c2c
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4134d3
lea eax, [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004091ee
add esp, 0xc
test al, al
je 0x413534
push edi
push edi
lea eax, [ebp - 0x3cc]
push eax
push ebx
mov ecx, esi
lea edx, [ebp - 0x84]
call fcn.00414fc1
test al, al
jne 0x413539
push str.XML_PARSING_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.00422710
mov byte [ebp - 4], 0xb
xor edi, edi
xor esi, esi
inc esi
jmp 0x413b8b
call fcn.004225e0
push edi
push str.CONFIG_LOADING
call fcn.004031f6
mov esi, eax
call fcn.004057ed
push eax
mov esi, ebx
call fcn.00415899
fld dword [0x68d4d0]
push ebx
fstp dword [ebx + 0x21c]
call fcn.0041580a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
jne 0x413576
mov byte [ebp - 4], 0xb
jmp 0x41352c
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xac], 0xf
call fcn.00403c2c
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x41359c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040345f
mov byte [ebp - 4], 0xe
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004092e7
add esp, 0xc
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403747
cmp byte [ebp + 0xb], 0
je 0x413b51
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.00414fc1
test al, al
jne 0x413638
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x413609
lea eax, [ebp - 0x48]
push eax
push str.XML_PARSING_ERROR
call fcn.004031f6
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0xc]
push eax
push 0x683464
push 2
pop esi
call fcn.00422740
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x413b77
push edi
push str.CONFIG_APPYING
call fcn.004031f6
mov esi, eax
call fcn.004057ed
push eax
mov esi, ebx
call fcn.00415899
fld1
push ebx
fstp dword [ebx + 0x21c]
call fcn.0041580a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x41362f
mov eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x31c]
jbe 0x4136eb
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 0x41362f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4136b6
lea eax, [ebp - 0x2c]
push 0x681154
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.005b2e53
add esp, 0xc
test eax, eax
jne 0x4136eb
push dword [ebp - 0x17c]
push str._torrent_config_notice_ver_d__
push dword [ebp + 0xc]
call fcn.005b2ea6
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005b3054
pop ecx
mov eax, dword [ebp - 0x2cc]
cmp eax, dword [ebp - 0x414]
jne 0x4136ff
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 0x180], eax
mov eax, dword [ebp - 0x2c8]
cmp eax, dword [ebp - 0x410]
jne 0x413719
mov eax, dword [ebp - 0x128]
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x43c]
jne 0x413733
mov eax, dword [ebp - 0x154]
mov dword [ebx + 0x158], eax
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x438]
jne 0x41374d
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.0040a8f9
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040f6a8
add esp, 0xc
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406c9e
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
push 0xffffffffffffffff
push edi
lea esi, [ebx + 0x9c]
push eax
mov ecx, esi
call fcn.0040384c
mov byte [ebp - 4], 0xf
push edi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403747
mov byte [ebp - 4], 0xd
push edi
push 1
lea ecx, [ebp - 0xe0]
call fcn.00403747
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040f6a8
add esp, 0xc
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406c9e
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebx + 0x114]
call fcn.0040384c
mov byte [ebp - 4], 0x11
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xe0]
call fcn.00403747
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00403747
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.0040384c
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x1a8]
call fcn.00403c48
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f6a8
add esp, 0xc
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406c9e
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], 8
jb 0x413901
mov eax, dword [eax + 4]
jmp 0x413904
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 0x413934
cmp dword [ebp + 0xc], edi
jne 0x413911
xor eax, eax
mov word [ebp - 0x916], ax
mov byte [ebp - 4], 0x13
push edi
push esi
lea ecx, [ebp - 0xe0]
call fcn.00403747
mov byte [ebp - 4], 0xd
push edi
push esi
lea ecx, [ebp - 0x68]
call fcn.00403747
lea edi, [ebp - 0xd14]
call fcn.00420cc0
mov eax, edi
lea esi, [ebx + 0xd8]
push eax
mov ecx, esi
call fcn.00403442
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040f6a8
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00406c9e
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x4139aa
mov eax, dword [eax + 4]
jmp 0x4139ad
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 0x4139d8
test edi, edi
jne 0x4139b8
xor eax, eax
mov word [ebp - 0x516], ax
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xe0]
call fcn.00403747
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.00403747
lea edi, [ebp - 0x914]
call fcn.00420cc0
mov eax, edi
push eax
lea ecx, [ebx + 0xf4]
call fcn.00403442
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 0x413a44
cmp dword [esi + 0x18], 8
jb 0x413a3a
mov esi, dword [esi + 4]
jmp 0x413a3d
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.004143ea
test byte [0x719570], 1
mov byte [ebp + 0xf], al
jne 0x413ac8
push ebx
call fcn.004143ea
movzx eax, al
push eax
push ebx
call fcn.00414960
cmp al, 1
jne 0x413a7a
mov edi, ebx
call fcn.00414762
xor edi, edi
cmp al, 1
jne 0x413a7a
mov byte [ebp + 0xf], al
cmp byte [ebp + 0xf], 0
je 0x413ac8
push ebx
call fcn.004143ea
test al, al
je 0x413ac1
push ebx
call fcn.00414434
test al, al
jne 0x413ac1
push str.NEW_PATCH_UNKNOWN_ERROR
lea ecx, [ebp - 0x68]
call fcn.0040345f
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.00403747
jmp 0x413ac8
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.00403b67
mov byte [ebp - 4], 0xb
push edi
push esi
lea ecx, [ebp - 0x84]
call fcn.00403b67
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.00412560
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.00412560
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.00412560
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00403747
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403747
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.00403747
mov eax, esi
jmp 0x413bf7
push str.REMOTE_CONFIG_OPEN_ERROR
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov edi, dword [ebp + 0xc]
push 2
mov ecx, eax
pop esi
call fcn.00422710
mov byte [ebp - 4], 0xc
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0xc4]
call fcn.00403b67
mov byte [ebp - 4], 0xb
push edi
lea ecx, [ebp - 0x84]
push esi
call fcn.00403b67
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x3cc]
push eax
call fcn.00412560
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
call fcn.00412560
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
call fcn.00412560
mov byte [ebp - 4], 7
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00403747
mov byte [ebp - 4], 6
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403747
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp - 0xa0]
call fcn.00403747
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8