Function at 0x10020480
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10189e1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x14], esi
call fcn.1001d9a0
sub esp, 8
lea ecx, [esp + 0x198]
mov ebp, eax
call fcn.1001e430
push edi
push ecx
lea eax, [esp + 0x198]
push esi
push eax
mov dword [esp + 0x244], 0
call fcn.1000e3e0
add esp, 8
mov edx, 0x101e28e0
mov ecx, eax
call fcn.1001cda0
add esp, 4
mov ecx, eax
call fcn.100246e0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x194]
call fcn.1000dd30
mov ecx, eax
call fcn.1000a250
push eax
call fcn.1016e252
add esp, 4
test eax, eax
je 0x10020521
call fcn.1016366f
lea ecx, [esp + 0x30]
call fcn.10007890
sub esp, 8
lea ecx, [esp + 0x100]
call fcn.1001e430
sub esp, 8
lea ecx, [esp + 0x68]
mov byte [esp + 0x23c], 1
call fcn.1001e430
dec edi
mov byte [esp + 0x234], 2
cmp edi, 1
jl 0x1002073d
nop
push 0x101e1e10
lea ecx, [esp + 0x1c]
call fcn.10008180
lea ecx, [esp + 0xfc]
mov byte [esp + 0x234], 3
call fcn.1001f1f0
mov esi, dword [esp + 0x138]
lea ecx, [esp + 0x18]
call fcn.10007940
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.1000a250
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], esi
test ebx, ebx
je 0x100205c1
push ebx
push eax
lea ecx, [esp + 0x104]
call fcn.1001f5e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 2
call fcn.10007890
push 0x101e1e10
lea ecx, [esp + 0x1c]
call fcn.10008180
lea ecx, [esp + 0x64]
mov byte [esp + 0x234], 4
call fcn.1001f1f0
mov esi, dword [esp + 0xa0]
lea ecx, [esp + 0x18]
call fcn.10007940
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.1000a250
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], esi
test ebx, ebx
je 0x1002062d
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.1001f5e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 2
call fcn.10007890
mov ebx, dword [esp + 0x14]
push edi
push ecx
lea eax, [esp + 0x100]
push ebx
push eax
call fcn.1000e3e0
add esp, 8
mov edx, 0x101e28e0
mov ecx, eax
call fcn.1001cda0
add esp, 4
mov ecx, eax
call fcn.100245c0
lea eax, [edi + 1]
push eax
push ecx
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.1000e3e0
add esp, 8
mov edx, 0x101e28e0
mov ecx, eax
call fcn.1001cda0
add esp, 4
mov ecx, eax
call fcn.100245c0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xfc]
call fcn.1000dd30
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x238], 5
call fcn.1000dd30
lea ecx, [esp + 0x48]
mov byte [esp + 0x234], 6
call fcn.1000a250
push eax
call fcn.1016e252
add esp, 4
test eax, eax
je 0x100206de
call fcn.1016366f
lea ecx, [esp + 0x48]
call fcn.1000a250
push eax
lea ecx, [esp + 0x34]
call fcn.1000a250
push eax
call fcn.1016e4d4
add esp, 8
test eax, eax
je 0x10020705
call fcn.1016366f
mov eax, dword [eax]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x38]
mov ecx, ebp
call fcn.10020240
add esp, 8
lea ecx, [esp + 0x48]
call fcn.10007890
lea ecx, [esp + 0x30]
mov byte [esp + 0x234], 2
call fcn.10007890
dec edi
cmp edi, 1
jge 0x10020560
mov byte [esp + 0x234], 1
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x60], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0x5c], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.1001f1f0
mov esi, dword [esp + 0x98]
mov dword [esp + 0x64], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
test esi, esi
je 0x10020796
mov ecx, esi
call fcn.10006e20
push esi
call fcn.1016059a
add esp, 4
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x60], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x5c], eax
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.10185c9c
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0xfc]
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xf8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0xf4], eax
lea ecx, [esp + 0xfc]
mov dword [esp + 0xfc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.1001f1f0
mov esi, dword [esp + 0x130]
mov dword [esp + 0xfc], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
test esi, esi
je 0x1002083c
mov ecx, esi
call fcn.10006e20
push esi
call fcn.1016059a
add esp, 4
mov eax, dword [esp + 0xf8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xf8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0xf4], eax
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10185c9c
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x194]
add esp, 4
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esp + 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0x18c], eax
lea ecx, [esp + 0x194]
mov dword [esp + method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.1001f1f0
mov esi, dword [esp + 0x1c8]
mov dword [esp + method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
test esi, esi
je 0x100208f1
mov ecx, esi
call fcn.10006e20
push esi
call fcn.1016059a
add esp, 4
mov eax, dword [esp + 0x190]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esp + 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x18c], eax
lea eax, [esp + 0x1e0]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10185c9c
mov ecx, dword [esp + 0x230]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret