Function at 0x403f60
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4294d6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x5b58
call fcn.004141d0
mov eax, dword [0x434c18]
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
fldz
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
fst qword [0x4368d8]
mov eax, dword [ebp + 0x10]
fst qword [0x4368d0]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x59e8], esi
mov dword [ebp - 0x59ec], ebx
mov dword [ebp - 0x59dc], eax
mov dword [0x4368c4], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x59a4], 7
mov dword [ebp - 0x59a8], edi
mov word [ebp - 0x59b8], cx
fld qword [ebp + 0x14]
fld st(0)
mov byte [ebp - 4], 1
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jp 0x40401a
lea edx, [ebp - 0x59b8]
fstp st(1)
push edx
fstp st(0)
lea eax, [ebp - 0x59e4]
push eax
push esi
call fcn.00402e80
fldz
add esp, 0xc
jmp 0x404020
fstp qword [ebp - 0x59e4]
fld qword [0x42c768]
mov dword [0x4368e0], 1
fcomp qword [ebp - 0x59e4]
fnstsw ax
test ah, 0x41
jne 0x40404e
push ebx
fstp st(0)
push esi
call fcn.00403010
add esp, 8
jmp 0x404716
xor esi, esi
mov dword [ebp - 0x59d8], esi
cmp esi, 8
jge 0x40422f
push esi
fstp qword [esi*8 + 0x436880]
lea ecx, [ebp - 0x5980]
push ebx
push ecx
call fcn.00402410
fild dword [ebp - 0x59d8]
add esp, 0xc
sub esp, 8
fmul qword [ebp - 0x59e4]
fmul qword [0x42c760]
fstp qword [esp]
call fcn.00414470
add esp, 8
call fcn.00412c30
mov ebx, eax
cmp esi, 7
jge 0x4040d6
lea edx, [esi + 1]
mov dword [ebp - 0x59d8], edx
fild dword [ebp - 0x59d8]
sub esp, 8
fmul qword [ebp - 0x59e4]
fmul qword [0x42c760]
fstp qword [esp]
call fcn.00414470
add esp, 8
call fcn.00412c30
lea edi, [eax - 1]
jmp 0x4040e3
fld qword [ebp - 0x59e4]
call fcn.00412c30
mov edi, eax
fld qword [ebp - 0x59e4]
call fcn.00412c30
cmp edi, eax
jle 0x4040f4
mov edi, eax
push edi
push ebx
lea eax, [ebp - 0x1a4]
push str.Range:_bytes_d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x59e8]
mov edi, esi
imul edi, edi, 0xaf4
add esp, 0x10
mov dword [ebp + edi - 0x5964], esi
call fcn.00406120
lea edx, [ebp + edi - 0x5960]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x404130
mov edx, dword [ebp - 0x5980]
mov edi, 8
cmp dword [ebp - 0x596c], edi
jae 0x40415a
lea edx, [ebp - 0x5980]
mov ecx, esi
imul ecx, ecx, 0xaf4
lea ecx, [ebp + ecx - 0x5190]
lea esp, [esp]
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x404170
mov edx, esi
imul edx, edx, 0xaf4
lea ecx, [ebp - 0x1a4]
lea edx, [ebp + edx - 0x5000]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x404196
mov eax, dword [ebp - 0x59dc]
test eax, eax
jne 0x4041d2
mov ecx, esi
imul ecx, ecx, 0xaf4
lea eax, [ebp + esi*4 - 0x1c4]
push eax
push 0
lea edx, [ebp + ecx - 0x5964]
push edx
push 0x4032e0
jmp 0x4041ed
mov edx, esi
imul edx, edx, 0xaf4
lea ecx, [ebp + esi*4 - 0x1c4]
push ecx
push 0
lea ecx, [ebp + edx - 0x5964]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + esi*4 - 0x5a10], eax
test eax, eax
jne 0x40420a
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x596c], edi
jb 0x404221
mov edx, dword [ebp - 0x5980]
push edx
call fcn.004119f5
add esp, 4
fldz
mov ebx, dword [ebp - 0x59ec]
inc esi
jmp 0x404050
push 0xffffffffffffffff
fstp st(0)
push 1
lea eax, [ebp - 0x5a10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea esp, [esp]
cmp esi, 8
jge 0x404262
mov ecx, dword [ebp + esi*4 - 0x5a10]
push ecx
call edi
inc esi
jmp 0x404250
push 0
lea edx, [ebp - 0x59d4]
push ebx
push edx
call fcn.00402410
add esp, 0xc
push 1
push 0x40
push 0x28
lea eax, [ebp - 0x59d4]
push eax
lea ecx, [ebp - 0x5ab8]
mov byte [ebp - 4], 2
call fcn.0040c350
mov eax, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x59d8], eax
mov edi, 0x10
cmp eax, 8
jge 0x4044cd
push eax
lea ecx, [ebp - 0x5980]
push ebx
push ecx
call fcn.00402410
add esp, 0xc
push 1
push 0x40
push 0x21
lea edx, [ebp - 0x5980]
push edx
lea ecx, [ebp - 0x5b68]
mov byte [ebp - 4], 4
call fcn.0040b5d0
lea eax, [ebp - 0x5b58]
push eax
lea ecx, [ebp - 0x5ab8]
mov byte [ebp - 4], 5
call fcn.00409d70
lea ecx, [ebp - 0x5b58]
call fcn.0040afd0
test eax, eax
jne 0x40432a
mov ecx, dword [ebp - 0x5b68]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x5b5c]
lea ecx, [ebp + ecx - 0x5b68]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x404322
or eax, 4
push 0
push eax
call fcn.00405bd0
lea edx, [ebp - 0x5980]
push edx
lea eax, [ebp - 0x599c]
push eax
call fcn.004020d0
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x404347
mov eax, dword [eax]
push eax
call fcn.00414440
add esp, 4
cmp dword [ebp - 0x5988], edi
jb 0x404367
mov ecx, dword [ebp - 0x599c]
push ecx
call fcn.004119f5
add esp, 4
mov eax, dword [ebp - 0x5b68]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x5b00]
mov dword [ebp - 0x59e8], edx
mov dword [ebp + ecx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea edx, [ebp - 0x5b58]
mov dword [ebp - 0x59e0], edx
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
cmp dword [ebp - 0x5b04], 0
mov byte [ebp - 4], 7
je 0x4043dc
mov edx, dword [ebp - 0x5b48]
lea ecx, [ebp - 0x5b10]
cmp dword [edx], ecx
jne 0x4043dc
mov eax, dword [ebp - 0x5b18]
mov esi, dword [ebp - 0x5b1c]
mov dword [edx], esi
mov edx, dword [ebp - 0x5b38]
mov ecx, eax
mov dword [edx], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x5b28]
mov dword [ecx], eax
cmp byte [ebp - 0x5b08], 0
je 0x4043f0
lea ecx, [ebp - 0x5b58]
call fcn.0040afd0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5b20]
mov byte [ebp - 4], 8
mov ebx, eax
test eax, eax
je 0x40445a
mov edi, dword [eax]
test edi, edi
je 0x404451
push 0
lea ecx, [ebp - 0x59dc]
call fcn.00411108
mov eax, dword [edi + 4]
test eax, eax
je 0x40442d
cmp eax, 0xffffffff
jae 0x40442d
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x59dc]
and esi, edi
call fcn.00411130
test esi, esi
je 0x404451
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.004119f5
add esp, 4
lea ecx, [ebp - 0x5b54]
mov byte [ebp - 4], 6
call fcn.00411858
mov ecx, dword [ebp - 0x5b68]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x5b00]
mov dword [ebp + edx - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov byte [ebp - 4], 4
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00411606
add esp, 4
cmp dword [ebp - 0x596c], 8
mov byte [ebp - 4], 3
jb 0x4044b6
mov ecx, dword [ebp - 0x5980]
push ecx
call fcn.004119f5
add esp, 4
inc dword [ebp - 0x59d8]
mov eax, dword [ebp - 0x59d8]
mov ebx, dword [ebp - 0x59ec]
jmp 0x40429f
lea ecx, [ebp - 0x5ab4]
call fcn.0040afd0
test eax, eax
jne 0x404507
mov edx, dword [ebp - 0x5ab8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x5aac]
lea ecx, [ebp + ecx - 0x5ab8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4044ff
or eax, 4
push 0
push eax
call fcn.00405bd0
lea eax, [ebp - 0x599c]
push ebx
push eax
call fcn.004020d0
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x40451e
mov eax, dword [eax]
push eax
call fcn.00414440
add esp, 4
cmp dword [ebp - 0x5988], edi
jb 0x40453e
mov ecx, dword [ebp - 0x599c]
push ecx
call fcn.004119f5
add esp, 4
lea edx, [ebp - 0x599c]
push ebx
push edx
call fcn.004020d0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x59d4]
push eax
lea ecx, [ebp - 0x5980]
push ecx
mov byte [ebp - 4], 9
call fcn.004020d0
add esp, 8
cmp dword [esi + 0x14], edi
jb 0x404571
mov esi, dword [esi]
cmp dword [eax + 0x14], edi
jb 0x404578
mov eax, dword [eax]
push esi
push eax
call fcn.0041440d
add esp, 8
cmp dword [ebp - 0x596c], edi
jb 0x404599
mov edx, dword [ebp - 0x5980]
push edx
call fcn.004119f5
add esp, 4
mov dword [ebp - 0x596c], 0xf
mov dword [ebp - 0x5970], 0
mov byte [ebp - 0x5980], 0
cmp dword [ebp - 0x5988], edi
jb 0x4045cb
mov eax, dword [ebp - 0x599c]
push eax
call fcn.004119f5
add esp, 4
mov edx, dword [ebp - 0x5ab8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x5a58]
mov dword [ebp - 0x59e0], ecx
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x5ab4]
mov dword [ebp - 0x59e8], ecx
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
cmp dword [ebp - 0x5a60], 0
mov byte [ebp - 4], 0xb
je 0x404640
mov edx, dword [ebp - 0x5aa4]
lea ecx, [ebp - 0x5a6c]
cmp dword [edx], ecx
jne 0x404640
mov eax, dword [ebp - 0x5a74]
mov esi, dword [ebp - 0x5a78]
mov dword [edx], esi
mov edx, dword [ebp - 0x5a94]
mov ecx, eax
mov dword [edx], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x5a84]
mov dword [ecx], eax
cmp byte [ebp - 0x5a64], 0
je 0x404654
lea ecx, [ebp - 0x5ab4]
call fcn.0040afd0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5a7c]
mov byte [ebp - 4], 0xc
mov ebx, eax
test eax, eax
je 0x4046be
mov edi, dword [eax]
test edi, edi
je 0x4046b5
push 0
lea ecx, [ebp - 0x59dc]
call fcn.00411108
mov eax, dword [edi + 4]
test eax, eax
je 0x404691
cmp eax, 0xffffffff
jae 0x404691
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x59dc]
and esi, edi
call fcn.00411130
test esi, esi
je 0x4046b5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.004119f5
add esp, 4
lea ecx, [ebp - 0x5ab0]
mov byte [ebp - 4], 0xa
call fcn.00411858
mov ecx, dword [ebp - 0x5ab8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x5a58]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov byte [ebp - 4], 2
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00411606
add esp, 4
cmp dword [ebp - 0x59c0], 8
jb 0x404716
mov ecx, dword [ebp - 0x59d4]
push ecx
call fcn.004119f5
add esp, 4
cmp dword [ebp - 0x59a4], 8
jb 0x40472e
mov edx, dword [ebp - 0x59b8]
push edx
call fcn.004119f5
add esp, 4
mov dword [0x4368c4], 0xff
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.00412c12
mov esp, ebp
pop ebp
ret