Function at 0x10009450
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e720
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x160], ecx
xor esi, esi
mov eax, 0x1000fb12
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.10004630
mov dword [ebp - 4], edi
cmp dword [ebx + 0x58], edi
je 0x1000950c
lea esi, [ebx + 0x48]
lea eax, [ebp - 0x178]
mov ecx, esi
call fcn.1000a5e0
mov ecx, dword [eax]
cmp ecx, edi
jne 0x100094e5
xor ecx, ecx
jmp 0x100094e7
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x100094f3
sub eax, edx
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax*4]
push eax
or ecx, 0xffffffff
xor ebx, ebx
lea edi, [ebp - 0x48]
call fcn.100042f0
call fcn.1000a1f0
or eax, 0xffffffff
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x164], eax
xor ecx, ecx
mov eax, 0xf
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x80], cl
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 0x64], cl
mov edi, dword [ebp - 0x14c]
mov eax, 1
add dword [ebp - 0x150], eax
mov byte [ebp - 4], al
mov ecx, dword [edi + 0xa8]
mov eax, dword [ebp + 0x14]
xor edx, edx
div ecx
xor edx, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
imul ebx, ecx
div ecx
mov esi, eax
imul esi, ecx
cmp dword [ebp - 0x15c], ebx
jne 0x1000957c
cmp dword [ebp - 0x164], esi
jne 0x1000957c
cmp dword [edi + 8], 0
jne 0x100095c7
mov eax, dword [edi + 8]
test eax, eax
je 0x1000958a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xc]
sub eax, 0xffffff80
lea edx, [eax + esi]
cmp edx, ecx
jbe 0x100095a1
sub ecx, esi
mov eax, ecx
push eax
mov eax, dword [edi + 4]
push esi
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
je 0x10009af5
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x164], esi
mov ecx, dword [edi + 8]
sub ecx, esi
add ecx, dword [ebp + 0x10]
lea ebx, [edi + 0x14]
lea eax, [ebp - 0x148]
call fcn.10008260
mov cl, byte [ebp - 0x148]
lea eax, [ebp - 0x147]
mov byte [ebp - 0xa8], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100095f2
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x147]
lea ecx, [ebp - 0x80]
call fcn.10004630
mov eax, dword [ebp - 0x38]
mov esi, eax
cmp eax, 0xffffffff
ja 0x10009b05
cmp eax, 0xfffffffe
ja 0x10009b05
mov ecx, dword [ebp - 0x50]
cmp ecx, eax
jae 0x10009791
mov edx, dword [ebp - 0x54]
push edx
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10004cd0
mov edi, 0x10
test esi, esi
setne al
test al, al
je 0x1000967c
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x10009654
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x1000965f
lea eax, [ebp - 0x64]
push esi
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov dword [ebp - 0x54], esi
cmp dword [ebp - 0x50], edi
jae 0x10009678
lea eax, [ebp - 0x64]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0xde]
mov edx, dword [ebp - 0xda]
mov eax, dword [ebp - 0xd6]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0xf6]
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0xf2]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xea]
mov dword [ebp - 0x94], edx
mov edx, dword [ebp - 0xe6]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xee]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xe2]
push ecx
lea edx, [ebp - 0xa8]
push edx
mov dword [ebp - 0x84], eax
call dword [ebp - 0x168]
add esp, 8
mov dword [ebp - 0x16c], eax
cmp eax, 0xffffffff
je 0x10009b10
lea eax, [ebp - 0x147]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009730
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x147]
lea ecx, [ebp - 0x2c]
call fcn.10004630
mov byte [ebp - 4], 2
cmp byte [ebp - 0x148], 1
jne 0x100099e7
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp esi, 1
jb 0x10009769
mov eax, 1
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov edx, edi
cmp ebx, 0x10
jae 0x10009779
lea edx, [ebp - 0x2c]
mov ecx, 0x1000f8bc
call fcn.10001050
test eax, eax
jne 0x100097bd
cmp esi, 1
jae 0x100097b3
or eax, 0xffffffff
jmp 0x100097bb
test eax, eax
jne 0x1000963b
mov edi, 0x10
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
cmp ecx, edi
jae 0x100097ab
lea eax, [ebp - 0x64]
mov byte [eax], 0
jmp 0x10009640
xor eax, eax
cmp esi, 1
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x100099ed
mov eax, esi
cmp esi, 2
jb 0x100097d9
mov eax, 2
mov edx, edi
cmp ebx, 0x10
jae 0x100097e3
lea edx, [ebp - 0x2c]
mov ecx, 0x1000fb14
call fcn.10001050
test eax, eax
jne 0x10009805
cmp esi, 2
jae 0x100097fb
or eax, 0xffffffff
jmp 0x10009803
xor eax, eax
cmp esi, 2
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x100099ed
mov eax, dword [ebp - 0xde]
mov ecx, dword [ebp - 0xda]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x180]
add eax, 0x24
push edx
mov dword [ebp - 0x17c], ecx
call fcn.1000a330
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x228], 0x1000f9c8
mov dword [ebp - 0x218], 0x1000f9d0
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
xor esi, esi
push esi
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 3
or dword [ebp - 0x158], 1
push eax
lea ecx, [ebp - 0x228]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x210]
mov dword [ebp + edx - 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
call dword [sym.imp.MSVCP100.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 - 0x1d4], esi
mov dword [ebp - 0x1d0], esi
mov byte [ebp - 4], 6
cmp dword [ebp - 0x38], esi
jne 0x100098d6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x218]
push ecx
jmp 0x100098f5
lea edx, [ebp - 0x2c]
push edx
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.10008b90
push eax
call fcn.10008960
add esp, 0x10
push eax
call fcn.10008b90
add esp, 8
lea ecx, [ebp - 0xc4]
lea eax, [ebp - 0x228]
call fcn.10006160
mov edi, eax
mov ebx, dword [ebp - 0x14c]
add ebx, 0x48
mov byte [ebp - 4], 7
mov edx, dword [ebx + 0x10]
inc edx
cmp dword [ebx + 8], edx
ja 0x1000992b
call fcn.1000a7a0
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
cmp eax, esi
ja 0x1000993a
sub esi, eax
mov eax, dword [ebx + 4]
cmp dword [eax + esi*4], 0
jne 0x1000995c
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10009b23
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*4], eax
mov edx, dword [ebx + 4]
mov esi, dword [edx + esi*4]
mov byte [ebp - 4], 8
test esi, esi
je 0x10009980
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.100041f0
inc dword [ebx + 0x10]
cmp dword [ebp - 0xb0], 0x10
jb 0x1000999c
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x154], ecx
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
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 9
call fcn.10006180
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1c8]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xd2]
mov ecx, dword [ebp - 0xce]
test eax, eax
jne 0x10009a6d
test ecx, ecx
jne 0x10009a6d
sub dword [ebp + 0x10], 0xffffff80
cmp dword [ebp - 0x150], 0x14
jne 0x10009a86
cmp ebx, 0x10
jb 0x10009a1d
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea esi, [ebp - 0xa8]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0
call fcn.10005df0
mov esi, dword [ebp - 0x14c]
cmp dword [esi + 0x34], 0
je 0x10009bbe
lea eax, [ebp - 0x178]
lea ecx, [esi + 0x24]
call fcn.1000a5e0
mov ecx, dword [eax]
test ecx, ecx
jne 0x10009b5b
xor edx, edx
jmp 0x10009b5d
cmp dword [ebp - 0x150], 0x14
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
jne 0x10009a86
mov dword [ebp - 0x150], 0
cmp dword [ebp - 0x16c], 0
je 0x10009a0e
cmp ebx, 0x10
jb 0x10009aa2
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x10009ac7
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x1000951b
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1000951b
lea esi, [ebp - 0xa8]
call fcn.10005df0
jmp 0x10009bbe
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
lea esi, [ebp - 0xa8]
call fcn.10005df0
cmp dword [ebp - 0x34], edi
jmp 0x10009bc2
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x154], 0
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1001130c
lea edx, [ebp - 0x178]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov ebx, dword [edx + 8]
mov eax, ecx
shr eax, 1
and ecx, 1
cmp ebx, eax
ja 0x10009b70
sub eax, ebx
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 0x34]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x10009ba7
mov ebx, dword [esi + 0x2c]
inc dword [esi + 0x30]
add ebx, ebx
cmp ebx, dword [esi + 0x30]
ja 0x10009b9a
mov dword [esi + 0x30], 0
dec ecx
mov dword [esi + 0x34], ecx
jne 0x10009ba7
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0x160]
push eax
push edx
mov edx, dword [ebp - 0x168]
push ecx
push edx
mov ecx, esi
call fcn.10009450
cmp dword [ebp - 0x34], 0x10
jb 0x10009bd1
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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 - 0x10]
xor ecx, ebp
call fcn.1000d500
mov esp, ebp
pop ebp
ret 0x10