Function at 0x4032f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49866d
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x51a900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0xd4], 0
push dword [ebp - 0xd4]
call fcn.0040b800
add esp, 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004221e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0xd5], al
cmp ecx, 7
jbe 0x40339b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40338b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a20
push ecx
push edx
call fcn.00471a87
mov al, byte [ebp - 0xd5]
add esp, 8
test al, al
je 0x403a25
call fcn.00420f30
test al, al
je 0x403a2f
call fcn.00425350
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
push 0x14
mov dword [ebp - 4], 1
call fcn.00471a9a
mov esi, eax
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x14], esi
mov eax, 1
lock xadd dword [esi], eax
mov dword [ebp - 0xd4], esi
push 8
mov byte [ebp - 4], 3
call fcn.00471a9a
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xdc], eax
mov dword [eax], esi
mov dword [eax + 4], 0x4030f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x40c030
push 0
push 0
call fcn.0047ee82
add esp, 0x20
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x403a12
mov ecx, 0x5236d0
mov dword [ebp - 4], 0xffffffff
call fcn.00422c40
cmp dword [0x5236d4], 0
jne 0x403a66
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [0x5236d0], eax
or edi, 0xffffffff
mov eax, dword [0x5236d8]
mov dword [0x5236d4], ecx
lea esi, [edx - 2]
mov ecx, dword [ebp - 0x14]
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], edx
mov dword [0x5236d8], ecx
test eax, eax
je 0x4034c9
lea ecx, [eax + 4]
mov edx, esi
lock xadd dword [ecx], edx
and edx, esi
cmp edx, 2
jne 0x4034c6
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4034c6
push 0x14
push eax
call fcn.00471a87
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 5
cmp dword [ebp - 0x18], 0
je 0x40351c
test edx, edx
je 0x4034e1
mov ecx, edx
call fcn.00422b00
cmp dword [ebp - 0x18], 0
je 0x403a39
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x403a40
push 0
push ecx
push dword [ebp - 0x1c]
call fcn.004700dc
add esp, 0xc
test eax, eax
jne 0x403a47
mov edx, dword [ebp - 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x40354a
lea eax, [edx + 4]
lock xadd dword [eax], esi
and esi, 0xfffffffe
cmp esi, 2
jne 0x40354a
lock xadd dword [edx], edi
cmp edi, 1
jne 0x40354a
push 0x14
push edx
call fcn.00471a87
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x403a66
call fcn.0042d5a0
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.Dinity.json
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov esi, eax
movups xmmword [ebp - 0x40], xmm0
call fcn.0041a090
mov dword [ebp - 0xd4], 0x46
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xb8]
mov byte [ebp - 0xdc], 0
push dword [ebp - 0xdc]
call fcn.0040b3f0
add esp, 4
mov byte [ebp - 4], 7
call fcn.00425180
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422340
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xd4], 0x56
push eax
lea ecx, [ebp - 0x88]
call fcn.00422880
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x70]
call fcn.00422340
lea eax, [ebp - 0x40]
mov dword [ebp - 0xd4], 0x76
push eax
lea ecx, [ebp - 0x70]
call fcn.00422880
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00401cf0
lea ecx, [ebp - 0x70]
call fcn.00401890
lea ecx, [ebp - 0x88]
call fcn.00401890
lea ecx, [ebp - 0xb8]
call fcn.00401890
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x403673
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403669
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a4e
push ecx
push edx
call fcn.00471a87
add esp, 8
call fcn.00424240
mov esi, eax
cmp byte [esi], 0
jne 0x403690
sub esp, 0xc
mov ecx, esi
call fcn.00424290
test al, al
je 0x403690
mov byte [esi], 1
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
nop dword [eax + eax]
mov eax, dword [0x524ac4]
cmp eax, dword [esi + 4]
jle 0x4036e0
push 0x524ac4
call fcn.00471f68
mov eax, dword [0x524ac4]
add esp, 4
cmp eax, 0xffffffff
jne 0x4036e0
push 0x49ab60
call fcn.00471d29
push 0x524ac4
call fcn.00471f17
mov eax, dword [0x524ac4]
add esp, 8
cmp byte [0x51b398], 0
je 0x403742
cmp eax, dword [esi + 4]
jle 0x40371e
push 0x524ac4
call fcn.00471f68
add esp, 4
cmp dword [0x524ac4], 0xffffffff
jne 0x40371e
push 0x49ab60
call fcn.00471d29
push 0x524ac4
call fcn.00471f17
add esp, 8
sub esp, 0x28
mov ecx, 0x51b398
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov dword [eax + 4], 0x4023a0
mov dword [eax + 0x24], eax
call fcn.004246e0
jmp 0x4036a0
mov ecx, dword [0x5236d8]
test ecx, ecx
je 0x403751
call fcn.00422b00
call fcn.0042d5a0
push 0xb
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.Dinity.json
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov edi, eax
movups xmmword [ebp - 0x28], xmm0
call fcn.0041a090
mov dword [ebp - 0xd4], 0x1c6
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0xdc], 0
push dword [ebp - 0xdc]
call fcn.0040b3f0
add esp, 4
mov byte [ebp - 4], 0xb
call fcn.00425180
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.00422340
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], 0x5c6
push eax
lea ecx, [ebp - 0xa0]
call fcn.00422880
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x58]
call fcn.00422340
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], 0xdc6
push eax
lea ecx, [ebp - 0x58]
call fcn.00422880
cmp dword [ebp - 0x44], 7
lea esi, [ebp - 0x58]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x18c], 0x4e36fc
cmova esi, dword [ebp - 0x58]
call fcn.0040b0f0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0xd4], 0x1dc6
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 - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x18c]
mov eax, dword [ebp - 0x18c]
add ecx, dword [eax + 4]
lea eax, [ebp - 0x188]
push ecx
push eax
call fcn.0040b160
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x188]
call fcn.0040afa0
push ecx
push 2
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0x188]
call fcn.0040aee0
test eax, eax
jne 0x4038f0
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x18c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00420930
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x18c]
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x180], 6
jne 0x403941
mov edx, edi
call fcn.00405270
lea ecx, [ebp - 0x18c]
call fcn.00402030
lea ecx, [ebp - 0x58]
call fcn.00401890
lea ecx, [ebp - 0xa0]
call fcn.00401890
lea ecx, [ebp - 0xd0]
call fcn.00401890
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4039a5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40399b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a53
push ecx
push edx
call fcn.00471a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [0x5236d4]
mov dword [ebp - 0x14], 7
test eax, eax
je 0x4039f5
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x5236d4]
cmp ecx, eax
je 0x403a58
push 0
push ecx
push dword [0x5236d0]
call fcn.004700dc
add esp, 0xc
test eax, eax
jne 0x403a5f
xorps xmm0, xmm0
movlpd qword [0x5236d0], xmm0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471a79
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.00470089
call fcn.0047699f
mov ecx, str.Cant_find_library
call fcn.00409280
mov ecx, str.Cant_find_Settings_folder
call fcn.00409280
push 1
call fcn.00470089
push 5
call fcn.00470089
push 2
call fcn.00470089
call fcn.0047699f
call fcn.0047699f
push 5
call fcn.00470089
push 2
call fcn.00470089
call fcn.0047937b
int3