Function at 0x10013680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10057824
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x10069700]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x10069700]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, edx
mov edi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 0x1005d8b8
mov dword [esp + 0x3c], 0x1005d8a8
mov dword [esp + 0x8c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x104], ebx
push edx
mov dword [esp + 0x20], 1
call fcn.100068d0
mov dword [esp + 0x100], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x2c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [esp + 0x44]
call fcn.10007bd0
mov dword [esp + 0x44], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x100], 3
lea eax, [esp + 0x3c]
push eax
push ebx
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov byte [eax + 4], bl
mov byte [eax + 6], bl
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
mov dword [esp + 0x34], esp
sub esp, 0x14
mov eax, esp
lea esi, [esp + 0x54]
mov dword [esp + 0x48], esp
mov dword [eax], edi
mov byte [eax + 4], bl
mov byte [eax + 6], bl
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
call fcn.100142d0
mov eax, dword [esp + 0x50]
sub eax, edi
cdq
mov ecx, 3
idiv ecx
mov eax, ecx
add esp, 0x30
sub eax, edx
cdq
idiv ecx
cmp edx, ebx
jbe 0x100137bf
mov esi, edx
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push edx
mov cl, 0x3d
call fcn.10004c40
dec esi
jne 0x100137b0
lea ecx, [esp + 0xd4]
lea eax, [esp + 0x2c]
call fcn.10005b00
push 0xffffffffffffffff
mov byte [esp + 0x104], 4
mov esi, dword [esp + 0x20]
push ebx
push eax
mov ecx, esi
call fcn.10005f00
cmp dword [esp + 0xe8], 0x10
jb 0x10013800
mov eax, dword [esp + 0xd4]
push eax
call fcn.10028db2
add esp, 4
mov edx, dword [esp + 0x2c]
cmp dword [esi + 0x10], ebx
mov eax, dword [edx + 4]
lea ecx, [esp + 0x8c]
setne byte [esp + 0x17]
mov dword [esp + 0x18], ecx
mov dword [esp + eax + 0x2c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x100], 5
test byte [esp + 0x84], 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x10013856
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
push eax
call fcn.10028db2
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
mov ecx, dword [esp + 0x64]
mov dword [ecx], ebx
mov edx, dword [esp + 0x74]
mov dword [edx], ebx
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
mov ecx, dword [esp + 0x68]
mov dword [ecx], ebx
mov edx, dword [esp + 0x78]
mov dword [edx], ebx
and dword [esp + 0x84], 0xfffffffe
mov dword [esp + 0x80], ebx
mov dword [esp + 0x44], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x100], 6
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x100138f4
mov edi, dword [eax]
cmp edi, ebx
je 0x100138e7
push ebx
lea ecx, [esp + 0x20]
call fcn.1002376b
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x100138c5
cmp eax, 0xffffffff
jae 0x100138c5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.10023793
cmp esi, ebx
je 0x100138e7
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
push eax
call fcn.10028db2
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x100], 5
call fcn.100237c4
mov dword [esp + 0x100], 0xffffffff
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x2c], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x3c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x8c]
mov dword [esp + eax + 0x2c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.100232c9
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.100282cc
mov esp, ebp
pop ebp
ret