Function at 0x598148
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x598151
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407b94
mov eax, dword [ebp - 8]
call fcn.00407b94
xor eax, eax
push ebp
push 0x5984c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [edi + 0x14], 0
lea eax, [ebp - 0xa9]
push eax
call fcn.00414a38
lea edx, [ebp - 0xb0]
lea eax, [ebp - 0xa9]
call fcn.00414ae4
mov eax, dword [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
call fcn.005980dc
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0x10]
pop ecx
call fcn.00408090
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x5984dc
mov eax, dword [ebp - 4]
call fcn.00596bd4
cmp al, 2
je 0x598495
cmp al, 1
jne 0x5981fd
mov ecx, 0x598504
mov dl, 1
mov eax, dword [0x40fe04]
call fcn.0041c948
call fcn.004061c4
push 0x40
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x43580c]
call fcn.00441bb8
mov esi, eax
lea edx, [ebp - 0x99]
mov ecx, 0x10
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x8d]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x89]
mov ecx, 0x4d
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x598472
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
movzx eax, byte [ebp - 0x49]
sub al, 1
jb 0x59828b
je 0x598391
dec al
je 0x5983f3
dec al
je 0x598305
jmp 0x598454
mov dl, 1
mov eax, dword [0x435c38]
call fcn.00405600
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.0044193c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dl, 1
mov eax, dword [0x4595d8]
call fcn.00462d78
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x89]
mov ecx, 0x40
call fcn.00407da4
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
call fcn.00405630
jmp 0x598454
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x44]
call fcn.00407f38
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x598336
mov eax, dword [ebp - 0x24]
sub eax, 0xa
cmp word [eax], 2
je 0x598336
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406bb4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
call fcn.004086c0
mov edx, eax
mov ecx, dword [ebp - 0x44]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
lea edx, [ebp - 0x89]
mov ecx, 0x40
call fcn.00407da4
push dword [ebp - 0xc0]
push 0x598544
push dword [ebp - 0xc]
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.00408174
mov edx, dword [ebp - 0xbc]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x598454
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xc8]
lea edx, [ebp - 0x89]
mov ecx, 0x40
call fcn.00407da4
push dword [ebp - 0xc8]
push 0x598544
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x1c]
call fcn.00415cdc
push dword [ebp - 0xcc]
lea eax, [ebp - 0xc4]
mov edx, 3
call fcn.00408174
mov edx, dword [ebp - 0xc4]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x598454
lea edx, [ebp - 0x1d]
mov ecx, dword [ebp - 0x44]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xd4]
lea edx, [ebp - 0x89]
mov ecx, 0x40
call fcn.00407da4
push dword [ebp - 0xd4]
push 0x598544
lea edx, [ebp - 0xd8]
movzx eax, byte [ebp - 0x1d]
call fcn.00415cdc
push dword [ebp - 0xd8]
lea eax, [ebp - 0xd0]
mov edx, 3
call fcn.00408174
mov edx, dword [ebp - 0xd0]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x89]
mov ecx, 0x4d
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x40], 0
jne 0x598260
mov eax, esi
call fcn.00405630
mov eax, dword [ebp - 0x10]
call fcn.00407c38
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [edi + 0x14], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5984c7
lea eax, [ebp - 0xd8]
mov edx, 0xb
call fcn.00407ba4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407ba4
ret