Function at 0x4120e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425452
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
push esi
movzx eax, byte [0x461d90]
test eax, eax
jne 0x41234d
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x178], esp
push str.version3
call fcn.00418290
mov dword [ebp - 0x17c], eax
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00411d40
add esp, 0x20
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0xb4]
call fcn.0041f360
movzx edx, al
test edx, edx
je 0x412188
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00418dc0
jmp 0x412be4
push 0
push str.version
lea ecx, [ebp - 0xb4]
call fcn.0041f7c0
test eax, eax
je 0x4121c9
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00418dc0
jmp 0x412be4
mov eax, dword [0x427a80]
push eax
push 7
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00422c90
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0xb4]
call fcn.004192d0
lea ecx, [ebp - 0x210]
call fcn.00418dc0
movzx eax, byte [ebp - 0x11]
cmp eax, 1
jne 0x41233b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push str.main.dataver
call fcn.00418290
mov dword [ebp - 0xec], eax
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0040df00
add esp, 0x1c
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x1f8]
push eax
call fcn.00415130
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41232c
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0xf4], esp
lea edx, [ebp - 0xb4]
push edx
push str._TO_
lea eax, [ebp - 0x1f8]
push eax
push str.UPDATE_
lea ecx, [ebp - 0x258]
push ecx
call fcn.004154f0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.00415320
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.004152e0
add esp, 0xc
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.0040f160
add esp, 0x1c
mov dword [ebp - 0xfc], eax
lea ecx, [ebp - 0x228]
call fcn.00418dc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00418dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00418dc0
mov byte [0x461d91], 0
push 1
mov ecx, 0x461fce
call fcn.004192b0
mov byte [0x461d92], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f8]
call fcn.00418dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00418dc0
push 1
push 0x40
push 0x20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x100], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x104], edx
mov dword [ebp - 4], 4
push 5
mov ecx, 0x4620e0
call fcn.00419700
push eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x400]
call fcn.00417960
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
call fcn.00418dc0
mov eax, dword [ebp - 0x400]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x400]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
movzx edx, al
test edx, edx
je 0x412bd2
push 2
push 0
push 0
lea ecx, [ebp - 0x400]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov ecx, eax
call fcn.00419740
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x400]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea ecx, [ebp - 0xcc]
call fcn.00418360
mov byte [ebp - 4], 8
push 1
push 1
lea ecx, [ebp - 0x4c0]
call fcn.00417d20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54c]
call fcn.00418880
cmp dword [ebp - 0x18], 0
jne 0x412477
lea ecx, [ebp - 0x400]
call fcn.0041ee70
jmp 0x412b3a
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004221a0
mov edx, dword [ebp - 0x18]
xor eax, eax
push eax
push edx
push 0
lea ecx, [ebp - 0xcc]
call fcn.00419680
push eax
lea ecx, [ebp - 0x400]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0x400]
call fcn.0041ee70
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x288]
push edx
call fcn.00408430
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004192d0
lea ecx, [ebp - 0x288]
call fcn.00418dc0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10c], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004192d0
lea ecx, [ebp - 0x2a0]
call fcn.00418dc0
lea edx, [ebp - 0xcc]
push edx
lea ecx, [ebp - 0x4c0]
call fcn.00422c10
mov ecx, 0x4621f8
call fcn.0041f3c0
movzx eax, al
test eax, eax
jne 0x412566
mov ecx, 0x4621f8
call fcn.0041ed90
mov ecx, dword [ebp - 0x4c0]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0x4c0]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::eof_void_const]
movzx eax, al
test eax, eax
jne 0x4125f1
lea ecx, [ebp - 0x198]
call fcn.00418360
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp - 0x4c0]
push edx
call fcn.00417210
add esp, 8
lea ecx, [ebp - 0x198]
call fcn.00422b10
cmp eax, 0x20
je 0x4125cc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x198]
call fcn.00418dc0
jmp 0x412b3a
lea eax, [ebp - 0x198]
push eax
mov ecx, 0x4621f8
call fcn.00421380
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x198]
call fcn.00418dc0
jmp 0x412566
mov ecx, 0x4621f8
call fcn.00422b80
mov esi, eax
mov ecx, 0x4620e0
call fcn.00422b80
cmp esi, eax
je 0x412610
jmp 0x412b3a
mov dword [ebp - 0x10], 0
jmp 0x412622
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov ecx, 0x4621f8
call fcn.00422b80
cmp dword [ebp - 0x10], eax
jae 0x412b05
cmp dword [ebp - 0x10], 5
jne 0x41263d
jmp 0x412619
push str.00000000000000000000000000000000
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x4621f8
call fcn.00419700
push eax
call fcn.00415050
add esp, 8
movzx eax, al
test eax, eax
je 0x412662
jmp 0x412619
lea ecx, [ebp - 0xe4]
call fcn.00418360
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x10], 0
je 0x412687
cmp dword [ebp - 0x10], 3
je 0x412687
cmp dword [ebp - 0x10], 4
jne 0x41276c
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x114], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x4620e0
call fcn.00419700
push eax
push esi
mov byte [ebp - 4], 0xb
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.0040df00
add esp, 0x1c
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1b0]
call fcn.0041f360
movzx edx, al
test edx, edx
jne 0x412758
push 0x20
lea ecx, [ebp - 0x1b0]
call fcn.00422b10
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0041ec00
push eax
lea ecx, [ebp - 0x54c]
call fcn.0041f320
push eax
lea ecx, [ebp - 0x2b8]
call fcn.004182f0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004192d0
lea ecx, [ebp - 0x2b8]
call fcn.00418dc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1b0]
call fcn.00418dc0
jmp 0x412a50
cmp dword [ebp - 0x10], 1
je 0x41277c
cmp dword [ebp - 0x10], 0x10
jne 0x41288a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x462228
call fcn.00418120
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 0xe
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x130], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4620e0
call fcn.00419700
push eax
push esi
mov byte [ebp - 4], 0xe
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x13c], ecx
lea edx, [ebp - 0x1c8]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040dc50
add esp, 0x34
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1c8]
call fcn.0041f360
movzx eax, al
test eax, eax
jne 0x412876
push 0x20
lea ecx, [ebp - 0x1c8]
call fcn.00422b10
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0041ec00
push eax
lea ecx, [ebp - 0x54c]
call fcn.0041f320
push eax
lea ecx, [ebp - 0x2d0]
call fcn.004182f0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.004192d0
lea ecx, [ebp - 0x2d0]
call fcn.00418dc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c8]
call fcn.00418dc0
jmp 0x412a50
cmp dword [ebp - 0x10], 2
jne 0x4129a2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x461fe0
call fcn.00418120
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x148], edx
mov byte [ebp - 4], 0x11
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14c], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x4620e0
call fcn.00419700
push eax
push esi
mov byte [ebp - 4], 0x11
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x158], edx
lea eax, [ebp - 0x1e0]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040dc50
add esp, 0x34
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1e0]
call fcn.0041f360
movzx ecx, al
test ecx, ecx
jne 0x41298e
push 0x20
lea ecx, [ebp - 0x1e0]
call fcn.00422b10
push eax
lea ecx, [ebp - 0x1e0]
call fcn.0041ec00
push eax
lea ecx, [ebp - 0x54c]
call fcn.0041f320
push eax
lea ecx, [ebp - 0x2e8]
call fcn.004182f0
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0xe4]
call fcn.004192d0
lea ecx, [ebp - 0x2e8]
call fcn.00418dc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1e0]
call fcn.00418dc0
jmp 0x412a50
push 0x20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x160], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x4620e0
call fcn.00419700
push eax
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 4], 0xb
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x7c]
call fcn.0041ec00
push eax
lea ecx, [ebp - 0x54c]
call fcn.0041f290
push eax
lea ecx, [ebp - 0x300]
call fcn.004182f0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0xe4]
call fcn.004192d0
lea ecx, [ebp - 0x300]
call fcn.00418dc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x318]
call fcn.00418dc0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4621f8
call fcn.00419700
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00415130
add esp, 8
movzx edx, al
test edx, edx
je 0x412af1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x168], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x4620e0
call fcn.00419700
push eax
lea edx, [ebp - 0x330]
push edx
mov byte [ebp - 4], 0xb
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.0041ec00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x330]
call fcn.00418dc0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe4]
call fcn.00418dc0
jmp 0x412619
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c0]
call fcn.00419a80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.00418dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x400]
call fcn.00419a50
jmp 0x412be4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x170], esp
push 0x462128
call fcn.00418120
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 0x17
push 5
mov ecx, 0x4620e0
call fcn.00419700
push eax
lea edx, [ebp - 0x348]
push edx
mov byte [ebp - 4], 9
call fcn.004080f0
add esp, 0x20
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.0041ec00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x348]
call fcn.00418dc0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c0]
call fcn.00419a80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.00418dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x400]
call fcn.00419a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret