Function at 0x401694
Capabilities:
Delete file

Disassembly:
mov eax, 0x455738
call fcn.00434704
sub esp, 0x53c
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0xa78], edi
je 0x40195d
cmp byte [ebx + 0xe6], 0
je 0x40176f
mov eax, dword [0x467d30]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x16c]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
call fcn.00448d08
mov esi, 0x466148
lea ecx, [ebp - 0x10]
push esi
call fcn.00448ce1
lea eax, [ebx + 0x200]
lea ecx, [ebp - 0x10]
push eax
call fcn.00448d08
push esi
lea ecx, [ebp - 0x10]
call fcn.00448ce1
lea eax, [ebx + 0x294]
lea ecx, [ebp - 0x10]
push eax
call fcn.00448d08
cmp byte [0x46aeec], 0
je 0x401734
push esi
lea ecx, [ebp - 0x10]
call fcn.00448ce1
lea eax, [ebx + 0x328]
lea ecx, [ebp - 0x10]
push eax
call fcn.00448d08
push str..sav
lea ecx, [ebp - 0x10]
call fcn.00448ce1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push 0x4696c0
push eax
call fcn.00448ba8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x24]
call fcn.00448a4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00448a4a
mov eax, dword [0x46679c]
mov dword [ebp - 0x14], edi
cmp eax, edi
mov edx, 0x46adc0
jle 0x4017f3
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov esi, dword [ebp - 0x18]
mov si, word [esi]
cmp si, 0x3e8
jl 0x4017c3
mov dword [ecx], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], esi
je 0x4017b3
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
movsx esi, word [esi]
movsx edi, word [edi]
sub esi, edi
add dword [ecx], esi
inc dword [ebp - 0x1c]
add dword [ebp - 0x20], 2
cmp dword [ebp - 0x1c], eax
jl 0x40179b
xor edi, edi
jmp 0x4017ce
movsx esi, si
sub esi, 0x3e8
mov dword [ecx], esi
inc dword [ebp - 0x14]
add dword [ebp - 0x18], 2
add ecx, 4
cmp dword [ebp - 0x14], eax
jl 0x401786
cmp eax, edi
jle 0x4017f3
mov ecx, 0x46a6b0
movsx esi, word [edx]
inc edx
mov dword [ecx], esi
inc edx
add ecx, 0x60
dec eax
jne 0x4017e6
mov eax, dword [ebx + 0x16c]
push edi
push eax
push 0x46a868
call fcn.0040cdef
add esp, 0xc
test eax, eax
jne 0x401862
mov eax, dword [ebp - 0x34]
push 0x46a6a8
add dword [0x46a884], eax
inc word [0x46a880]
push 0x46ac80
mov ecx, ebx
call fcn.004044b1
cmp dword [ebx + 0xa78], edi
jge 0x401855
or word [0x46a908], 0xffff
push 0x10
mov word [0x46aae4], di
pop ecx
mov esi, 0x46a828
mov edi, 0x46a898
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push 0x46a868
call fcn.0040cf6c
pop ecx
pop ecx
lea ecx, [ebp - 0x2cc]
call fcn.004019ac
mov eax, dword [ebx + 0x200]
push edi
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.0040cdef
add esp, 0xc
test eax, eax
jne 0x4018ba
mov eax, dword [ebp - 0x30]
push 0x46a708
add dword [ebp - 0x52c], eax
inc word [ebp - 0x530]
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
call fcn.004044b1
lea eax, [ebp - 0x548]
push edi
push eax
call fcn.0040cf6c
pop ecx
pop ecx
mov eax, dword [ebx + 0x294]
push edi
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.0040cdef
add esp, 0xc
test eax, eax
jne 0x401907
mov eax, dword [ebp - 0x2c]
push 0x46a768
add dword [ebp - 0x52c], eax
inc word [ebp - 0x530]
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
call fcn.004044b1
lea eax, [ebp - 0x548]
push edi
push eax
call fcn.0040cf6c
pop ecx
pop ecx
cmp byte [0x46aeec], 0
je 0x40195d
mov eax, dword [ebx + 0x328]
push edi
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.0040cdef
add esp, 0xc
test eax, eax
jne 0x40195d
mov eax, dword [ebp - 0x28]
push 0x46a7c8
add dword [ebp - 0x52c], eax
inc word [ebp - 0x530]
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
call fcn.004044b1
lea eax, [ebp - 0x548]
push edi
push eax
call fcn.0040cf6c
pop ecx
pop ecx
cmp dword [ebp + 8], edi
jne 0x40199b
cmp dword [ebx + 0xa78], edi
jle 0x40197a
mov ecx, 0x46af08
call fcn.00432a14
cmp dword [ebx + 0xa78], edi
jne 0x401994
lea esi, [ebx + 0xa3c]
push 2
push dword [esi]
call dword [0x46af2c]
push dword [esi]
call dword [0x46af1c]
mov ecx, ebx
call fcn.004013d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4