Function at 0x10040770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ea4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + 0x1c]
add eax, 0x3c
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 0xf
jbe 0x100407ac
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
push eax
push 0
call fcn.1006866c
mov ecx, 2
lea esi, [eax + 1]
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10056d3e
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
push eax
call fcn.1006866c
mov edx, dword [ebp - 0x30]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x40], edi
add esp, 0x1c
mov dword [ebp - 0x3c], edi
movups xmmword [ebp - 0x50], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100407f5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100015b0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor edx, edx
mov esi, 7
xor eax, eax
mov dword [ebp - 0x1c], edx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x3c], esi
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
cmova eax, dword [ebp - 0x50]
cmova ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
cmp eax, ecx
je 0x10040d12
movzx eax, word [eax]
mov ecx, 0x80
mov dword [ebp - 0x34], eax
cmp ax, cx
jae 0x100408ab
cbw
movzx ecx, ax
cmp edx, esi
jae 0x10040894
lea eax, [edx + 1]
cmp esi, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x10040cf9
push ecx
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.1000a7a0
jmp 0x10040cf9
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0x10084440
mov dword [ebp - 0x114], 0x10084448
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x7c], 0
push 0
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 2
or edi, 4
mov dword [ebp - 0xbc], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc0], 0x50
movlpd qword [ebp - 0x11c], xmm0
call fcn.10020640
mov eax, dword [ebp - 0x114]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x118], eax
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x128], eax
mov eax, dword [ebp - 0x124]
xorps xmm0, xmm0
push 8
mov dword [ebp - 4], 7
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 - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x128], eax
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
movups xmmword [ebp - 0x108], xmm0
movups xmmword [ebp - 0xf8], xmm0
movups xmmword [ebp - 0xe8], xmm0
call fcn.100568ab
mov esi, eax
add esp, 4
test esi, esi
je 0x10040a28
push 1
mov byte [ebp - 4], 8
call fcn.100554f1
add esp, 4
mov dword [esi + 4], eax
jmp 0x10040a2a
xor esi, esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xd8], esi
call fcn.1001e180
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 - 0xd4], 0
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 9
push 0x1008469c
push eax
call fcn.100088a0
mov esi, eax
lea eax, [ebp - 0x148]
push 0
push 4
push eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov byte [ecx + esi + 0x40], 0x30
call fcn.100561df
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
mov ecx, esi
mov eax, dword [ebp - 0x34]
movzx eax, ax
push eax
call fcn.1003ed70
mov eax, dword [ebp - 0xd0]
xorps xmm0, xmm0
or edi, 0x80
mov byte [ebp - 4], 0xa
and al, 0x22
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x14], edi
movq qword [ebp - 0x138], xmm0
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x74], 0
cmp al, 2
je 0x10040b2d
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
test ecx, ecx
je 0x10040b2d
mov eax, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0xd4]
cmovb ecx, dword [ebp - 0xd4]
mov edx, dword [eax]
sub ecx, edx
jmp 0x10040b64
test byte [ebp - 0xd0], 4
jne 0x10040b58
mov eax, dword [ebp - 0xf0]
mov esi, dword [eax]
test esi, esi
je 0x10040b58
mov eax, dword [ebp - 0x100]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x10040b64
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x138]
test edx, edx
je 0x10040b72
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.1002b1a0
and edi, 0xffffff7f
mov dword [ebp - 4], 9
or edi, 0x40
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x74]
lea esi, [ebp - 0x74]
mov edx, dword [ebp - 0x60]
cmova eax, ecx
cmova esi, ecx
mov byte [ebp - 4], 0xb
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x34], eax
cmp esi, eax
je 0x10040bff
nop
mov al, byte [esi]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cbw
movzx edx, ax
cmp ecx, edi
jae 0x10040bde
lea eax, [ecx + 1]
cmp edi, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x10040bf0
push edx
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x54]
push 1
call fcn.1000a7a0
inc esi
cmp esi, dword [ebp - 0x34]
jne 0x10040bb0
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 9
cmp edx, 0xf
jbe 0x10040c31
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040c27
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040e65
push edx
push ecx
call fcn.100568db
add esp, 8
mov eax, dword [ebp - 0x124]
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 - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x10c]
call fcn.1003c9a0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x128], eax
mov eax, dword [ebp - 0x114]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x118], eax
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x128], eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0xbc], vtable.std::ios_base.0
call fcn.10055d61
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x38]
je 0x10040d12
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x1004085b
mov dword [ebp - 0x15c], 0
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 4], 0xf
call fcn.10038f70
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
or edi, 2
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x18], 7
xorps xmm0, xmm0
push 0
cmova ecx, dword [ebp - 0x2c]
push 1
mov dword [ebp - 0x14], edi
movups xmmword [ebp - 0x150], xmm0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x154], ecx
cmova eax, dword [ebp - 0x2c]
sub esp, 0x28
mov dword [ebp - 0x158], eax
mov eax, esp
mov dword [ebp - 0x38], eax
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x158]
sub esp, 0x20
mov byte [ebp - 4], 0xe
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x148]
movups xmmword [eax + 0x10], xmm0
lea eax, [ebp - 0x12c]
push eax
call fcn.10035d20
add esp, 0x54
mov esi, dword [ebp + 8]
mov ecx, eax
push esi
push 1
mov byte [ebp - 4], 0x11
call fcn.1004cf50
lea ecx, [ebp - 0x12c]
call fcn.1003cf70
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10040e07
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040dfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040e65
push ecx
push edx
call fcn.100568db
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], 7
cmp eax, 7
jbe 0x10040e51
mov edx, dword [ebp - 0x50]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040e47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040e65
push ecx
push edx
call fcn.100568db
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.1005bb75
int3