Function at 0x1000c820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083f79
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x100bc1b4]
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 dword [ebp - 0x2f4], ecx
xor eax, eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000c8b4
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000c8b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000c8b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x231], 0
je 0x1000c93b
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 2
push str.LoadData
push esi
call fcn.1000a400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000c93b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000c93b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000c93b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 0
push 0
push eax
call fcn.100592a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100bdfa8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [0x100bd5b8]
test ecx, ecx
jne 0x1000c9f5
push 0x100b2020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100bd5b8], 0
jne 0x1000c9dc
push 0x1c
call fcn.10053309
mov esi, eax
add esp, 4
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 4
test esi, esi
je 0x1000c9cd
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1000c9cf
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x100bd5b8], esi
push 0x100b2020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100bd5b8]
test ecx, ecx
jne 0x1000c9f5
xor eax, eax
jmp 0x1000ca57
mov eax, dword [0x100bd5b4]
test eax, eax
jne 0x1000ca57
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x100bd5b4], 0
jne 0x1000ca47
push 0x18
call fcn.10053309
add esp, 4
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x1000ca32
mov ecx, eax
call fcn.10017560
mov ecx, eax
jmp 0x1000ca34
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x2f8], eax
mov dword [0x100bd5b4], ecx
mov eax, dword [0x100bd5b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x100bd5b4]
lea ecx, [ebp - 0x250]
push ecx
mov ecx, eax
call fcn.10018660
mov dword [ebp - 4], 6
mov eax, dword [0x100bd5c8]
test al, 1
jne 0x1000ca8f
or eax, 1
mov dword [0x100bd5c8], eax
mov byte [ebp - 4], 7
mov dword [0x100bd5c4], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x244]
mov byte [ebp - 0x231], 0
push eax
call fcn.10039eb9
mov byte [ebp - 4], 8
lea eax, [ebp - 0x244]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
push 0x10006ae0
push 0x100bd5c4
call fcn.1003ab81
add esp, 0x10
test eax, eax
je 0x1000d800
mov byte [ebp - 4], 6
lea eax, [ebp - 0x244]
push eax
call fcn.10039ef3
mov eax, dword [ebp - 0x250]
add esp, 4
mov ecx, 0x100bd5cc
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000cb26
test dx, dx
je 0x1000cb22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000cb26
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000cb00
xor eax, eax
jmp 0x1000cb2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000cc12
mov eax, dword [0x100bd5e4]
test al, 1
jne 0x1000cb56
or eax, 1
mov dword [0x100bd5e4], eax
mov byte [ebp - 4], 0xa
mov dword [0x100bd5e0], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x258]
mov byte [ebp - 0x231], 0
push eax
call fcn.10039eb9
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x258]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
push 0x10006990
push 0x100bd5e0
call fcn.1003ab81
add esp, 0x10
test eax, eax
je 0x1000cbf6
mov byte [ebp - 4], 6
lea eax, [ebp - 0x258]
push eax
call fcn.10039ef3
mov eax, dword [ebp - 0x250]
add esp, 4
mov ecx, 0x100bd5e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000cbe6
test dx, dx
je 0x1000cbe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000cbe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000cbc0
xor eax, eax
jmp 0x1000cbeb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000cc12
push str.svc.dat
jmp 0x1000cc17
lea eax, [ebp - 0x258]
push eax
call fcn.10039f14
add esp, 4
test al, al
je 0x1000d85b
jmp 0x1000d837
push str.theme.bin
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000cc79
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000cc79
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000cc73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x231]
test al, al
je 0x1000ce6a
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0xe
mov edi, dword [eax]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2f0], 0x1008fabc
mov dword [ebp - 0x254], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 0xf
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x10
mov eax, 1
push 0
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x2f0]
push 0
lea eax, [ebp - 0x2ec]
push eax
call fcn.10007ca0
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x2f0]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + 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 [ebp - 0x2f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2f4], eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x254], eax
mov dword [ebp - 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
call fcn.10053309
mov esi, eax
add esp, 4
test esi, esi
je 0x1000cd58
push 1
call fcn.1003a658
add esp, 4
mov dword [esi + 4], eax
jmp 0x1000cd5a
xor esi, esi
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0x12
mov dword [ebp - 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
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 4
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.100066a0
mov eax, dword [edi]
lea ecx, [ebp - 0x2f0]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000ce6a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000ce6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000ce6a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ce80
jmp 0x1000d6da
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x18
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000ced5
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000ced5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000cecf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x231]
test al, al
je 0x1000d0c0
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x19
mov edi, dword [eax]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2f0], 0x1008fabc
mov dword [ebp - 0x240], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 0x1a
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x2ec]
or dword [ebp - 0x248], 2
lea ecx, [ebp - 0x2f0]
push 0
push 0
push eax
call fcn.10007ca0
mov dword [ebp - 4], 0x1c
mov eax, dword [ebp - 0x2f0]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + 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 [ebp - 0x2f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2f4], eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x240], eax
mov dword [ebp - 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
call fcn.10053309
mov esi, eax
add esp, 4
test esi, esi
je 0x1000cfb0
push 1
call fcn.1003a658
add esp, 4
mov dword [esi + 4], eax
jmp 0x1000cfb2
xor esi, esi
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0x1d
mov dword [ebp - 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
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 4
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x2f0]
push str.LoadData1
push eax
call fcn.1000a400
mov eax, dword [edi]
lea ecx, [ebp - 0x2f0]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d0c0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000d0c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d0c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10037350
add esp, 8
test eax, eax
jne 0x1000d121
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.10009220
jmp 0x1000d6da
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x24
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov byte [ebp - 4], 0x22
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d176
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000d176
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d170
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x231]
test al, al
je 0x1000d361
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x25
mov edi, dword [eax]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2f0], 0x1008fabc
mov dword [ebp - 0x240], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 0x26
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x2ec]
or dword [ebp - 0x248], 4
lea ecx, [ebp - 0x2f0]
push 0
push 0
push eax
call fcn.10007ca0
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 0x2f0]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + 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 [ebp - 0x2f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2f4], eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x240], eax
mov dword [ebp - 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
call fcn.10053309
mov esi, eax
add esp, 4
test esi, esi
je 0x1000d251
push 1
call fcn.1003a658
add esp, 4
mov dword [esi + 4], eax
jmp 0x1000d253
xor esi, esi
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0x29
mov dword [ebp - 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
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 4
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x2f0]
push str.LoadData2
push eax
call fcn.1000a400
mov eax, dword [edi]
lea ecx, [ebp - 0x2f0]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov byte [ebp - 4], 0x22
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d361
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000d361
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d361
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x2f4]
mov ecx, esi
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10011910
mov byte [ebp - 4], 0x2e
lea edx, [esi + 0x14]
mov ecx, dword [eax]
mov esi, dword [edx]
sub esi, 0x10
lea eax, [ecx - 0x10]
mov dword [ebp - 0x24c], eax
cmp eax, esi
je 0x1000d3fa
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x1000d3ef
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x1000d3ef
push dword [ebp - 0x24c]
call fcn.1000b0c0
add esp, 4
mov dword [ebp - 0x24c], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x1000d3e1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x2f4]
add eax, 0x10
mov dword [ecx + 0x14], eax
jmp 0x1000d3fa
push dword [ecx - 0xc]
push ecx
mov ecx, edx
call fcn.10012540
mov byte [ebp - 4], 0x22
mov eax, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d41b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x31
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov byte [ebp - 4], 0x22
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d470
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000d470
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d46a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x231]
test al, al
je 0x1000d65b
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0x32
mov edi, dword [eax]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2f0], 0x1008fabc
mov dword [ebp - 0x240], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 0x33
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0x2ec]
or dword [ebp - 0x248], 8
lea ecx, [ebp - 0x2f0]
push 0
push 0
push eax
call fcn.10007ca0
mov dword [ebp - 4], 0x35
mov eax, dword [ebp - 0x2f0]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + 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 [ebp - 0x2f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2f4], eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x240], eax
mov dword [ebp - 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
call fcn.10053309
mov esi, eax
add esp, 4
test esi, esi
je 0x1000d54b
push 1
call fcn.1003a658
add esp, 4
mov dword [esi + 4], eax
jmp 0x1000d54d
xor esi, esi
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 4], 0x36
mov dword [ebp - 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
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 4
mov byte [ebp - 4], 0x39
lea eax, [ebp - 0x2f0]
push str.LoadData3
push eax
call fcn.1000a400
mov eax, dword [edi]
lea ecx, [ebp - 0x2f0]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov byte [ebp - 4], 0x22
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d65b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000d65b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d65b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ecx, dword [ebp - 0x2f4]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1000df50
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x1000d6bf
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d6b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d860
push edx
push ecx
call fcn.10053339
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d6fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 0x3c
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x231], al
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d759
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1000d759
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000d753
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x231]
test al, al
je 0x1000d7de
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov dword [ebp - 4], 0x3d
lea ecx, [ebp - 0x2f0]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 0x3e
push str.LoadData4
push esi
call fcn.1000a400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x3d
lea ecx, [ebp - 0x2f0]
call fcn.1000a600
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1000d7de
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000d7de
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1000d7de
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x24c]
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.100536aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x244]
push eax
call fcn.10039f14
add esp, 4
test al, al
je 0x1000d85b
sub esp, 8
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.10008970
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
call fcn.10015930
sub esp, 8
lea eax, [ebp - 0x258]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.10008970
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
call fcn.10015930
call fcn.1003ab99
call fcn.1005c389
int3