Function at 0x403790
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42941e
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
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x59e8], esi
mov dword [ebp - 0x59ec], ebx
mov dword [ebp - 0x59dc], eax
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
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x40382e
lea edx, [ebp - 0x59b8]
fstp st(0)
push edx
lea eax, [ebp - 0x59e4]
push eax
push esi
call fcn.00402e80
add esp, 0xc
jmp 0x403834
fstp qword [ebp - 0x59e4]
fld qword [0x42c768]
fcomp qword [ebp - 0x59e4]
fnstsw ax
test ah, 0x41
jne 0x403856
push ebx
push esi
call fcn.00403010
add esp, 8
jmp 0x403f0e
xor esi, esi
mov dword [ebp - 0x59d8], esi
cmp esi, 8
jge 0x403a2d
push esi
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 0x4038d7
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 0x4038e4
fld qword [ebp - 0x59e4]
call fcn.00412c30
mov edi, eax
fld qword [ebp - 0x59e4]
call fcn.00412c30
cmp edi, eax
jle 0x4038f5
mov edi, eax
push edi
push ebx
lea eax, [ebp - 0x1a4]
push 0x42bba0
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 ecx, [ecx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x403930
mov edx, dword [ebp - 0x5980]
mov edi, 8
cmp dword [ebp - 0x596c], edi
jae 0x40395a
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 0x403970
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 0x403996
mov eax, dword [ebp - 0x59dc]
test eax, eax
jne 0x4039d2
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 0x4039ed
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 0x403a0a
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x596c], edi
jb 0x403a21
mov edx, dword [ebp - 0x5980]
push edx
call fcn.004119f5
add esp, 4
mov ebx, dword [ebp - 0x59ec]
inc esi
jmp 0x403858
push 0xffffffffffffffff
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
cmp esi, 8
jge 0x403a5a
mov ecx, dword [ebp + esi*4 - 0x5a10]
push ecx
call edi
inc esi
jmp 0x403a48
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 0x403cc5
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 0x403b22
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 0x403b1a
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 0x403b3f
mov eax, dword [eax]
push eax
call fcn.00414440
add esp, 4
cmp dword [ebp - 0x5988], edi
jb 0x403b5f
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 0x403bd4
mov edx, dword [ebp - 0x5b48]
lea ecx, [ebp - 0x5b10]
cmp dword [edx], ecx
jne 0x403bd4
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 0x403be8
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 0x403c52
mov edi, dword [eax]
test edi, edi
je 0x403c49
push 0
lea ecx, [ebp - 0x59dc]
call fcn.00411108
mov eax, dword [edi + 4]
test eax, eax
je 0x403c25
cmp eax, 0xffffffff
jae 0x403c25
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 0x403c49
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 0x403cae
mov ecx, dword [ebp - 0x5980]
push ecx
call fcn.004119f5
add esp, 4
inc dword [ebp - 0x59d8]
mov ebx, dword [ebp - 0x59ec]
mov eax, dword [ebp - 0x59d8]
jmp 0x403a97
lea ecx, [ebp - 0x5ab4]
call fcn.0040afd0
test eax, eax
jne 0x403cff
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 0x403cf7
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 0x403d16
mov eax, dword [eax]
push eax
call fcn.00414440
add esp, 4
cmp dword [ebp - 0x5988], edi
jb 0x403d36
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 0x403d69
mov esi, dword [esi]
cmp dword [eax + 0x14], edi
jb 0x403d70
mov eax, dword [eax]
push esi
push eax
call fcn.0041440d
add esp, 8
cmp dword [ebp - 0x596c], edi
jb 0x403d91
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 0x403dc3
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 0x403e38
mov edx, dword [ebp - 0x5aa4]
lea ecx, [ebp - 0x5a6c]
cmp dword [edx], ecx
jne 0x403e38
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 0x403e4c
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 0x403eb6
mov edi, dword [eax]
test edi, edi
je 0x403ead
push 0
lea ecx, [ebp - 0x59dc]
call fcn.00411108
mov eax, dword [edi + 4]
test eax, eax
je 0x403e89
cmp eax, 0xffffffff
jae 0x403e89
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 0x403ead
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 0x403f0e
mov ecx, dword [ebp - 0x59d4]
push ecx
call fcn.004119f5
add esp, 4
cmp dword [ebp - 0x59a4], 8
jb 0x403f26
mov edx, dword [ebp - 0x59b8]
push edx
call fcn.004119f5
add esp, 4
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