Function at 0x40df07
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fe64
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x45bb20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], 0
call fcn.00404140
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0
call fcn.00403da0
mov byte [ebp - 0x20], 0x21
mov esi, 0x7f
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0x1e], 0x43
mov byte [ebp - 0x1d], 0x64
mov byte [ebp - 0x1c], 0x28
mov byte [ebp - 0x1b], 0x50
mov byte [ebp - 0x1a], 0x36
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x78
mov byte [ebp - 0x17], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x16], 0
cmp byte [ebp - 0x16], 0
mov byte [ebp - 4], 1
jne 0x40d215
mov byte [ebp - 0x16], 1
xor ecx, ecx
mov al, byte [ebp + ecx - 0x20]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x20], dl
inc ecx
cmp ecx, 9
jb 0x40d1f5
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
jmp 0x40d220
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d220
sub ecx, edx
lea eax, [ebp - 0x20]
add eax, ecx
lea ecx, [ebp - 0x154]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00417530
mov dword [ebp - 0x15c], 2
mov byte [ebp - 0x2c], 0x21
mov byte [ebp - 0x2b], 0x2f
mov byte [ebp - 0x2a], 0x43
mov byte [ebp - 0x29], 0x64
mov byte [ebp - 0x28], 0x28
mov byte [ebp - 0x27], 0x50
mov byte [ebp - 0x26], 0x36
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x78
mov byte [ebp - 0x23], 0x7c
mov byte [ebp - 0x22], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
mov byte [ebp - 4], 2
jne 0x40d2b0
mov byte [ebp - 0x21], 1
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x2c]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x2c], dl
inc ecx
cmp ecx, 0xa
jb 0x40d290
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d2b6
sub ecx, edx
lea eax, [ebp - 0x2c]
add eax, ecx
lea ecx, [ebp - 0x154]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00417530
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xa4]
mov bl, 1
push eax
mov byte [ebp - 0x155], bl
call fcn.00417af0
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x40d30b
mov esi, dword [esi]
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x270], 0x447c54
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x15c], 0xe
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x270]
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x274], eax
lea eax, [ebp - 0x260]
mov ecx, eax
mov dword [ebp - 0x164], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 7
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x218], 0
mov byte [ebp - 0x223], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x45c7d0]
mov ecx, dword [0x45c7d4]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
push 0x40
push 0x21
push esi
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.00418940
test eax, eax
jne 0x40d40e
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0x270]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x274], eax
mov edx, dword [ebp - 0x90]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x40d47b
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d471
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d471
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp dword [ebp - 0x214], eax
jne 0x40d628
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00417af0
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x40d4c3
mov eax, dword [eax]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x260]
call fcn.00418940
test eax, eax
lea ecx, [ebp - 0x270]
mov eax, dword [ebp - 0x270]
push 0
mov eax, dword [eax + 4]
je 0x40d4f4
add ecx, eax
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x40d4fe
add ecx, eax
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x40d544
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d53a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d53a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
cmp dword [ebp - 0x214], 0
jne 0x40d620
lea eax, [ebp - 0x1b0]
mov ecx, edi
push eax
call fcn.00404060
lea ecx, [ebp - 0x270]
call fcn.00405aa0
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x40d5a7
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d59d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push edx
push ecx
call fcn.0043ca8f
add esp, 8
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x40d5e1
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push edx
push ecx
call fcn.0043ca8f
add esp, 8
lea ecx, [ebp - 0x154]
call fcn.00404d50
lea ecx, [ebp - 0x194]
call fcn.0040fc20
lea ecx, [ebp - 0x1a0]
call fcn.0040fc20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043ccfc
mov esp, ebp
pop ebp
ret
xor bl, bl
mov byte [ebp - 0x155], bl
push 1
lea ecx, [ebp - 0x3e0]
call fcn.00403ce0
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x330], 0x447ac0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x15c], 0x1e
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x330]
mov dword [ebp - 4], 0xe
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x330]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x334], eax
lea ecx, [ebp - 0x320]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 2
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_streambuf_char__struct_std::char_traits_char____]
lea ecx, [ebp - 0x3e0]
test bl, bl
je 0x40d9a7
lea eax, [ebp - 0xec]
push eax
call fcn.00419fd0
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0x10
push eax
call fcn.00412b60
add esp, 8
push eax
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x11
call fcn.00419ee0
lea ecx, [ebp - 0xd4]
call fcn.00404a10
lea ecx, [ebp - 0xec]
call fcn.00404a10
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0x12
push eax
call fcn.004180a0
push 0x3b
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00403780
mov edx, dword [ebp - 0x4c]
add esp, 0x10
mov esi, dword [ebp - 0x170]
mov ebx, dword [ebp - 0x16c]
test edx, edx
jne 0x40d7dc
cmp esi, ebx
jne 0x40d7e0
lea ecx, [ebp - 0x170]
call fcn.0040fc20
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x40d9f5
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push edx
push ecx
call fcn.0043ca8f
add esp, 8
jmp 0x40d9f5
cmp esi, ebx
je 0x40d819
mov edi, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
mov ecx, esi
cmovae eax, edi
cmp dword [esi + 0x14], 0x10
jb 0x40d7f7
mov ecx, dword [esi]
push edx
push eax
push dword [esi + 0x10]
push ecx
call fcn.00403640
add esp, 0x10
test al, al
jne 0x40d815
mov edx, dword [ebp - 0x4c]
add esi, 0x18
cmp esi, ebx
jne 0x40d7e3
jmp 0x40d81c
mov bl, 1
jmp 0x40d81e
mov edi, dword [ebp - 0x5c]
xor bl, bl
lea ecx, [ebp - 0x170]
call fcn.0040fc20
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x40d860
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d856
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push ecx
push edi
call fcn.0043ca8f
add esp, 8
test bl, bl
jne 0x40d9ef
cmp dword [ebp - 0x214], 0
je 0x40d918
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x224]
cmp dword [eax], ecx
jne 0x40d8a5
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x244]
mov dword [eax], ecx
mov eax, dword [ebp - 0x234]
mov dword [eax], edx
lea esi, [ebp - 0x260]
mov ecx, esi
call fcn.0040f9c0
push dword [ebp - 0x214]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x218], cl
mov byte [ebp - 0x223], cl
cmovne esi, ecx
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x45c7d0]
mov ecx, dword [0x45c7d4]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
test esi, esi
jne 0x40d978
jmp 0x40d95d
lea ecx, [ebp - 0x260]
mov byte [ebp - 0x218], 0
mov byte [ebp - 0x223], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x45c7d0]
mov ecx, dword [0x45c7d4]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edi, dword [ebp - 0x160]
lea eax, [ebp - 0x1b0]
push eax
mov ecx, edi
call fcn.00404060
lea ecx, [ebp - 0x330]
call fcn.00405b60
lea ecx, [ebp - 0x3e0]
call fcn.00405c70
jmp 0x40d55f
lea eax, [ebp - 0xd4]
push eax
call fcn.00419fd0
push eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x14
push eax
call fcn.00413000
add esp, 8
push eax
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x15
call fcn.00419ee0
lea ecx, [ebp - 0xec]
call fcn.00404a10
lea ecx, [ebp - 0xd4]
call fcn.00404a10
jmp 0x40d9f5
mov edi, dword [ebp - 0x160]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0x16
push 0x3b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00403780
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x40df1f
mov ebx, dword [ebp - 0x30]
lea esi, [ebp - 0x44]
mov edi, dword [ebp - 0x34]
cmp ebx, 0x10
mov byte [ebp - 4], 0x17
cmovae esi, dword [ebp - 0x44]
test edi, edi
je 0x40da65
push edi
push 0x3d
push esi
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40da65
sub ecx, esi
jmp 0x40da68
or ecx, 0xffffffff
cmp edi, ecx
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
cmovb ecx, edi
mov dword [ebp - 0x48], 0xf
cmp ebx, 0x10
mov byte [ebp - 0x5c], 0
push ecx
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
push eax
call fcn.004104f0
or dword [ebp - 0x15c], 0x20
mov byte [ebp - 4], 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x48], 0x10
lea esi, [ebp - 0x5c]
mov ebx, eax
lea eax, [ebp - 0x1b4]
cmovae esi, dword [ebp - 0x5c]
push 0xa
push eax
push esi
mov dword [ebx], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov edi, eax
cmp esi, dword [ebp - 0x1b4]
je 0x40e241
cmp dword [ebx], 0x22
je 0x40e25f
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 0x17
cmp edx, 0x10
jb 0x40db22
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40db18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
cmp edi, 0x15
ja case.0x40db2b.10
jmp dword [edi*4 + 0x40e26c]
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1b0], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1af], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1ae], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1ad], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1ac], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a1e0
mov edi, dword [ebp - 0x160]
add esp, 4
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a1e0
mov edi, dword [ebp - 0x160]
add esp, 4
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00417370
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x40dc57
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x1b8]
mov dword [edi], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
mov ebx, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0x164], eax
cmp esi, dword [ebp - 0x1b8]
je 0x40e24b
cmp dword [edi], 0x22
je 0x40e255
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 0x17
cmp edx, 0x10
jb 0x40dcd5
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40dcc5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
mov eax, dword [ebp - 0x164]
add esp, 8
mov edi, dword [ebp - 0x160]
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], eax
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a1e0
mov edi, dword [ebp - 0x160]
add esp, 4
mov dword [ebp - 0x188], eax
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1ab], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a8], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a7], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a6], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0041a2c0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x1a0]
cmp eax, esi
je 0x40ddfb
mov ecx, eax
call fcn.0040fc20
mov ecx, dword [esi]
mov dword [ebp - 0x1a0], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x19c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x198], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x27c]
call fcn.0040fc20
mov edi, dword [ebp - 0x160]
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a5], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a4], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1aa], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
call fcn.0041a150
mov edi, dword [ebp - 0x160]
add esp, 4
mov byte [ebp - 0x1a9], al
mov dword [ebp - 4], 0x16
jmp 0x40da12
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0041a2c0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x194]
cmp eax, esi
je 0x40defc
mov ecx, eax
call fcn.0040fc20
mov ecx, dword [esi]
mov dword [ebp - 0x194], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x190], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x18c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x288]
call fcn.0040fc20
mov edi, dword [ebp - 0x160]
mov dword [ebp - 4], 0x16
jmp 0x40da12
cmp dword [ebp - 0x214], 0
je 0x40dfcf
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x224]
cmp dword [eax], ecx
jne 0x40df5c
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x244]
mov dword [eax], ecx
mov eax, dword [ebp - 0x234]
mov dword [eax], edx
lea esi, [ebp - 0x260]
mov ecx, esi
call fcn.0040f9c0
push dword [ebp - 0x214]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x218], cl
mov byte [ebp - 0x223], cl
cmovne esi, ecx
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x45c7d0]
mov ecx, dword [0x45c7d4]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
test esi, esi
jne 0x40e02f
jmp 0x40e014
lea ecx, [ebp - 0x260]
mov byte [ebp - 0x218], 0
mov byte [ebp - 0x223], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x45c7d0]
mov ecx, dword [0x45c7d4]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp byte [ebp - 0x155], 0
jne 0x40e0ab
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00417af0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40e053
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x40e09c
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e092
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040f1e0
add esp, 4
lea eax, [ebp - 0x1b0]
mov ecx, edi
push eax
call fcn.00404060
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40e0ed
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push edx
push ecx
call fcn.0043ca8f
add esp, 8
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x330]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x334], eax
lea ecx, [ebp - 0x320]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040fb80
lea ecx, [ebp - 0x320]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x318]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x3e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x3e4], eax
lea ecx, [ebp - 0x3c8]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040fb80
lea ecx, [ebp - 0x3c8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x3c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x378]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x270]
call fcn.00405aa0
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x40e203
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e1f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e23b
push edx
push ecx
call fcn.0043ca8f
add esp, 8
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x40d5e1
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d5d7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.invalid_stoi_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.invalid_stoll_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
push str.stoll_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
push str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
lea ecx, [ecx]
xor bl, bl
inc eax
add byte [esi - 0x25], dl
inc eax
add byte [edx - 0x25], bh
inc eax
add byte [esi - 0x3dffbf25], bl
fild dword [eax]
or bl, ah
inc eax
add dh, ah
fild dword [eax]
fadd qword cs:[eax]
fadd qword [eax]
pop ss
fld qword [eax]
pop es
fild word [eax]
cmp ebx, ebp
inc eax
add byte [edi - 0x23], bl
inc eax
add byte [ebx + 0x70040dd], al
fild word [eax]
pop es
fild word [eax]
sbb dh, bl
inc eax
add byte [esi + ebx*8], bh
inc eax
add byte [eax - 0x22], ah
inc eax
add byte [esi + ebx*8 - 0x2258ffc0], al
inc eax
add byte [eax - 0x33ffbf22], ch
int3