Function at 0x41f850
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e327e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x500
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xec], 0x4eae90
call fcn.0040d400
mov edi, 1
mov dword [ebp - 0x90], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1c], edi
push ebx
lea eax, [ebp - 0xe4]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], ebx
call fcn.00420280
push ebx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], edi
call fcn.0040f7f0
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xec], 0x4eae8c
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x41f8f2
mov eax, 0x4ea894
push 0x21
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040f9f0
test eax, eax
jne 0x41f924
mov eax, dword [ebp - 0xec]
push ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xe8]
or al, 2
lea ecx, [ebp + ecx - 0xec]
push eax
call fcn.004200c0
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0xe8]
test al, 6
jne 0x41f950
mov eax, edx
push edi
push ebx
push ebx
mov ecx, dword [ebp + eax - 0xc4]
lea eax, [ebp - 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], edi
cmp eax, ebx
je 0x41fe06
lea ecx, [ebp - 0xec]
test ecx, ecx
jne 0x41f96f
xor eax, eax
jmp 0x41f97f
mov edx, dword [ebp - 0xec]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0xec]
mov ecx, dword [eax + 4]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
test eax, ecx
je 0x41fbc0
mov edx, dword [ebp - 0xec]
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x50c]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 4]
push 0xa
lea ecx, [ebp + eax - 0xec]
call fcn.004200e0
push eax
lea ecx, [ebp - 0x50c]
push 0x400
push ecx
lea ecx, [ebp - 0xec]
call fcn.00420330
lea edx, [ebp - 0x50c]
lea ecx, [ebp - 0x18]
push edx
call fcn.004d49fb
push 0x518908
push 0x50af58
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004d3319
push 0x518908
push 0x50af54
lea ecx, [ebp - 0x18]
call fcn.004d3319
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004d4702
lea ecx, [ebp - 0x14]
push ecx
call fcn.00415b20
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov eax, dword [edx - 8]
test eax, eax
je 0x41fde3
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x41fa53
push 0x50af50
lea ecx, [ebp - 0x14]
call fcn.004d369c
test eax, eax
jge 0x41fa5b
jmp 0x41fde3
test eax, eax
je 0x41fc8e
lea eax, [ebp - 0x20]
push eax
call fcn.004d3cb5
push 0
lea ecx, [ebp - 0x20]
call fcn.004d3cc8
mov esi, dword [eax + 0x14]
push 0
lea ecx, [ebp - 0x20]
add esi, 0x76c
call fcn.004d3cc8
mov edi, dword [eax + 0x10]
push 0
lea ecx, [ebp - 0x20]
inc edi
call fcn.004d3cc8
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push edx
push eax
push str._d__d__d
push ecx
call fcn.004b0614
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
add esp, 0x14
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.004d3bd1
mov edx, dword [ebp - 0x50]
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
lea ecx, [ebp - 0x20]
mov dword [eax], edx
lea eax, [ebp - 0x58]
push eax
call fcn.0040c430
mov ecx, dword [ebp - 0x58]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
mov dword [ebp - 0x1c], 0
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0xe
jl 0x41fde3
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41fb37
push eax
call fcn.004aedef
add esp, 4
test eax, eax
jne 0x41fb37
push 2
push eax
lea ecx, [ebp - 0xe4]
call fcn.00410b30
lea edx, [ebp - 0xe4]
test edx, edx
jne 0x41fb50
mov eax, dword [ebp - 0xec]
push 0
push 2
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xec]
call fcn.0040dac0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x41fb5f
mov eax, 0x4ea894
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x51347c]
mov dword [ebp - 0x1c], eax
push ebx
push edi
push esi
lea ecx, [ebp - 0x1c]
push str._d__d__d
push ecx
mov byte [ebp - 4], 5
call fcn.004d3a22
add esp, 0x10
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
call fcn.004d4702
mov ecx, dword [ebp - 0x2c]
call fcn.0041fed0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004d498d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004d498d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d498d
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41fbef
push eax
call fcn.004aedef
add esp, 4
test eax, eax
jne 0x41fbef
push 2
push eax
lea ecx, [ebp - 0xe4]
call fcn.00410b30
lea eax, [ebp - 0xe4]
test eax, eax
jne 0x41fc19
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0xe8]
lea ecx, [ebp + edx - 0xec]
or al, 2
mov edx, dword [ecx + 0x28]
test edx, edx
jne 0x41fc11
or al, 4
push 0
push eax
call fcn.004c0e77
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xec], 0x4eae8c
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x13
call fcn.0040e200
mov eax, dword [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xec], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.004c10d8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x509d78
lea ecx, [ebp - 0x14]
call fcn.004d36aa
mov esi, eax
lea eax, [ebp - 0x28]
push esi
push 0
push eax
lea ecx, [ebp - 0x14]
call fcn.004d34f0
mov ecx, dword [ebp - 0x28]
push 0x518908
push ecx
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x41fdd7
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x509d78
mov byte [ebp - 4], 7
call fcn.004d36aa
mov esi, eax
lea ecx, [ebp - 0x14]
lea edx, [esi + 1]
push edx
push 0x509d78
call fcn.004d36aa
sub eax, esi
add esi, 3
sub eax, 3
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.004d34f0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 8
push ecx
lea ecx, [ebp - 0x34]
call fcn.004d49fb
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 9
call fcn.004d49fb
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0xa
call fcn.004d4702
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push ecx
lea ecx, [ebp - 0x38]
call fcn.004d4702
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 0xc
call fcn.004d4702
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xd
call fcn.004d4702
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0xf4]
push ecx
push edx
mov ecx, 0x518a00
mov byte [ebp - 4], 0xe
call fcn.004103b0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.004d498d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.004d498d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.004d498d
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004d498d
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.004d498d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.004d498d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.004d498d
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004d498d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004d498d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d498d
jmp 0x41f961
mov edx, dword [ebp - 0xec]
mov eax, dword [edx + 4]
mov edx, dword [ebp + eax - 0xc4]
lea ecx, [ebp + eax - 0xec]
mov eax, dword [ebp + eax - 0xe8]
or al, 2
cmp edx, ebx
jne 0x41fe2c
or al, 4
push ebx
push eax
call fcn.004c0e77
mov edx, dword [ebp - 0xec]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x24], ecx
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xec], 0x4eae8c
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], 0x12
call fcn.0040e200
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x90]
mov dword [ebp + edx - 0xec], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x90], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.004c10d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret