Function at 0x4032d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49860d
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.0040b7e0
add esp, 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004221a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0xd5], al
cmp ecx, 7
jbe 0x40337b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40336b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a00
push ecx
push edx
call fcn.00471a37
mov al, byte [ebp - 0xd5]
add esp, 8
test al, al
je 0x403a05
call fcn.00420f00
test al, al
je 0x403a0f
call fcn.00425310
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
push 0x14
mov dword [ebp - 4], 1
call fcn.00471a4a
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.00471a4a
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xdc], eax
mov dword [eax], esi
mov dword [eax + 4], 0x4030d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x40c010
push 0
push 0
call fcn.0047ee32
add esp, 0x20
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4039f2
mov ecx, 0x5236d0
mov dword [ebp - 4], 0xffffffff
call fcn.00422c00
cmp dword [0x5236d4], 0
jne 0x403a46
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 0x4034a9
lea ecx, [eax + 4]
mov edx, esi
lock xadd dword [ecx], edx
and edx, esi
cmp edx, 2
jne 0x4034a6
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4034a6
push 0x14
push eax
call fcn.00471a37
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 5
cmp dword [ebp - 0x18], 0
je 0x4034fc
test edx, edx
je 0x4034c1
mov ecx, edx
call fcn.00422ac0
cmp dword [ebp - 0x18], 0
je 0x403a19
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x403a20
push 0
push ecx
push dword [ebp - 0x1c]
call fcn.0047008c
add esp, 0xc
test eax, eax
jne 0x403a27
mov edx, dword [ebp - 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x40352a
lea eax, [edx + 4]
lock xadd dword [eax], esi
and esi, 0xfffffffe
cmp esi, 2
jne 0x40352a
lock xadd dword [edx], edi
cmp edi, 1
jne 0x40352a
push 0x14
push edx
call fcn.00471a37
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x403a46
call fcn.0042d560
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.0041a060
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.0040b3d0
add esp, 4
mov byte [ebp - 4], 7
call fcn.00425140
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.00422300
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xd4], 0x56
push eax
lea ecx, [ebp - 0x88]
call fcn.00422840
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x70]
call fcn.00422300
lea eax, [ebp - 0x40]
mov dword [ebp - 0xd4], 0x76
push eax
lea ecx, [ebp - 0x70]
call fcn.00422840
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.00401ce0
lea ecx, [ebp - 0x70]
call fcn.00401880
lea ecx, [ebp - 0x88]
call fcn.00401880
lea ecx, [ebp - 0xb8]
call fcn.00401880
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x403653
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403649
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a2e
push ecx
push edx
call fcn.00471a37
add esp, 8
call fcn.00424200
mov esi, eax
cmp byte [esi], 0
jne 0x403670
sub esp, 0xc
mov ecx, esi
call fcn.00424250
test al, al
je 0x403670
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 0x4036c0
push 0x524ac4
call fcn.00471f18
mov eax, dword [0x524ac4]
add esp, 4
cmp eax, 0xffffffff
jne 0x4036c0
push 0x49ab00
call fcn.00471cd9
push 0x524ac4
call fcn.00471ec7
mov eax, dword [0x524ac4]
add esp, 8
cmp byte [0x51b398], 0
je 0x403722
cmp eax, dword [esi + 4]
jle 0x4036fe
push 0x524ac4
call fcn.00471f18
add esp, 4
cmp dword [0x524ac4], 0xffffffff
jne 0x4036fe
push 0x49ab00
call fcn.00471cd9
push 0x524ac4
call fcn.00471ec7
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], 0x402380
mov dword [eax + 0x24], eax
call fcn.004246a0
jmp 0x403680
mov ecx, dword [0x5236d8]
test ecx, ecx
je 0x403731
call fcn.00422ac0
call fcn.0042d560
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.0041a060
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.0040b3d0
add esp, 4
mov byte [ebp - 4], 0xb
call fcn.00425140
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.00422300
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], 0x5c6
push eax
lea ecx, [ebp - 0xa0]
call fcn.00422840
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x58]
call fcn.00422300
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], 0xdc6
push eax
lea ecx, [ebp - 0x58]
call fcn.00422840
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.0040b0d0
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.0040b140
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.0040af80
push ecx
push 2
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0x188]
call fcn.0040aec0
test eax, eax
jne 0x4038d0
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.00420900
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 0x403921
mov edx, edi
call fcn.00405250
lea ecx, [ebp - 0x18c]
call fcn.00402010
lea ecx, [ebp - 0x58]
call fcn.00401880
lea ecx, [ebp - 0xa0]
call fcn.00401880
lea ecx, [ebp - 0xd0]
call fcn.00401880
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x403985
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40397b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a33
push ecx
push edx
call fcn.00471a37
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 0x4039d5
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x5236d4]
cmp ecx, eax
je 0x403a38
push 0
push ecx
push dword [0x5236d0]
call fcn.0047008c
add esp, 0xc
test eax, eax
jne 0x403a3f
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.00471a29
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.00470039
call fcn.0047694f
mov ecx, str.Cant_find_library
call fcn.00409260
mov ecx, str.Cant_find_Settings_folder
call fcn.00409260
push 1
call fcn.00470039
push 5
call fcn.00470039
push 2
call fcn.00470039
call fcn.0047694f
call fcn.0047694f
push 5
call fcn.00470039
push 2
call fcn.00470039
call fcn.0047932b
int3