Function at 0x4585d6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cac61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4588e3
lea eax, [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 0x6d7c
mov dword [ebp - 0x60], str.tdg_gnlouurnx_gte_asbustgn_rqqy_hfarzskxr_tkww_bba
cmp dword [ebp - 0x34], 0x707d
jle 0x45868f
and dword [ebp - 0x30], 0
jmp 0x458643
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x274
jge 0x45868f
and dword [ebp - 0x24], 0
jmp 0x458659
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1171
jge 0x45868d
mov eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
mov ecx, 0xa9b358
call fcn.0040b8d9
jmp 0x458652
jmp 0x45863c
lea eax, [ebp + 0x30]
mov dword [ebp - 0x98], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x6c8e
jge 0x4586b2
mov edx, dword [ebp - 0x60]
mov ecx, 0xa9b358
call fcn.0040e54d
jmp 0x4586ce
or dword [ebp - 4], 0xffffffff
jmp 0x4586d8
lea eax, [ebp + 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x45888d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x45887a
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x38], 0x6ae4
mov dword [ebp - 0x3c], str.iagfx_ggwo_ybuba
cmp dword [ebp - 0x38], 0x6d56
jle 0x4587e7
and dword [ebp - 0x1c], 0
jmp 0x45874c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x43b6
jge 0x4587d9
and dword [ebp - 0x2c], 0
jmp 0x458766
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x17f8
jge 0x4587d4
and dword [ebp - 0x20], 0
jmp 0x45877c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1d0d
jge 0x4587d2
and dword [ebp - 0x28], 0
jmp 0x458792
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4e6b
jge 0x4587d0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
sar edx, cl
xor eax, edx
cdq
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], edx
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
mov ecx, 0xa9b358
call fcn.0040b8d9
jmp 0x45878b
jmp 0x458775
jmp 0x45875f
jmp 0x458745
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x38], 0x6767
jge 0x45880a
mov edx, dword [ebp - 0x3c]
mov ecx, 0xa9b358
call fcn.0040e54d
jmp 0x458826
or dword [ebp - 4], 0xffffffff
jmp 0x458830
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x458858
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 2
jge 0x458878
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x88]
call fcn.0040bd1c
mov dword [eax], 0x715ee56e
jmp 0x45884d
jmp 0x45888b
push 0
push 0
push 0x182
push 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4588e1
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x4588cd
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x4588e1
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4588e1
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x45892a
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x94], eax
push 0x48d1
push 0
push 1
push dword [ebp - 0x84]
push 0x3c86
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
push eax
call fcn.0043cfa2
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret