Function at 0x40131c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4b8744]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4b8744]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x401388
mov eax, 0x80004003
jmp 0x401810
cmp dword [edi + 8], 2
jbe 0x401398
mov eax, 0x8002000e
jmp 0x401810
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [esp + 0x28], eax
je 0x4013aa
cmp dword [edi + 8], 1
jne 0x40138e
mov eax, dword [ecx]
mov esi, 0x80004005
call dword [eax + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00405029
and dword [esp + 0x250], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.00405064
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040504f
push eax
lea ecx, [esp + 0x18]
call fcn.00404fc3
test al, al
je 0x401805
lea ecx, [esp + 0x14]
call fcn.004050d0
xor edx, edx
inc edx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], ecx
test dl, cl
je 0x401417
test al, 2
jne 0x401435
test cl, 2
je 0x401424
cmp word [esp + 0x28], 0
jne 0x401435
test cl, 3
jne 0x401805
test dl, al
je 0x401805
test dl, al
je 0x40145e
mov eax, ecx
shr eax, 3
and eax, edx
cmp dword [edi + 8], eax
jb 0x401454
test cl, 8
push 0
pop eax
setne al
inc eax
cmp eax, dword [edi + 8]
jae 0x40145e
mov esi, 0x8002000e
jmp 0x401805
lea ecx, [esp + 0x64]
call fcn.0040bbc4
and dword [ebp + 0x18], 5
push 9
mov byte [esp + 0x254], 1
pop edx
je 0x40149e
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40149e
mov eax, dword [edi]
shl ecx, 4
add eax, 0xfffffff0
add eax, ecx
cmp word [eax], dx
je 0x40149e
push eax
push 8
lea ecx, [esp + 0x6c]
call fcn.0040bb9b
mov esi, eax
jmp 0x4014a0
xor esi, esi
test esi, esi
js 0x4017fc
lea ecx, [esp + 0x54]
call fcn.0040bbc4
cmp word [ebp + 0x18], 0
mov byte [esp + 0x250], 2
je 0x4014e6
cmp dword [edi + 8], 2
je 0x4014d3
cmp dword [edi + 8], 1
jne 0x4014e6
test byte [esp + 0x1c], 8
jne 0x4014e6
push dword [edi]
lea ecx, [esp + 0x58]
push 9
pop eax
push eax
call fcn.0040bb9b
mov esi, eax
jmp 0x4014e8
xor esi, esi
test esi, esi
js 0x4017f3
lea ecx, [esp + 0xc4]
call fcn.00476db1
and dword [esp + 0x40], 0
mov esi, 0xfffffe00
and dword [esp + 0x3c], esi
push 8
pop eax
mov byte [esp + 0x250], 5
cmp word [esp + 0x64], ax
jne 0x40157f
push dword [esp + 0x6c]
lea ecx, [esp + 0x138]
call fcn.00404fdb
mov byte [esp + 0x250], 6
mov ecx, eax
mov dword [esp + 0x14], 1
call fcn.00404b49
push eax
lea ecx, [esp + 0x78]
call fcn.0040bb66
push 3
pop ebx
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x254], 7
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x1c], ebx
push eax
lea ecx, [esp + 0xd0]
call fcn.00476df1
mov byte [esp + 0x13], 0
test al, al
je 0x401584
mov byte [esp + 0x13], 1
test bl, 2
je 0x401595
lea ecx, [esp + 0x74]
and ebx, 0xfffffffd
call fcn.0040b62f
mov dword [esp + 0x250], 5
test bl, 1
je 0x4015b4
lea ecx, [esp + 0x134]
and ebx, 0xfffffffe
call fcn.0040501c
cmp byte [esp + 0x13], 0
je 0x4017d1
mov edi, dword [esp + 0x20]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x24]
push 9
mov edx, dword [ecx + eax*8 - 8]
mov eax, dword [ecx + eax*8 - 4]
pop ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
cmp word [esp + 0x54], cx
jne 0x4016a8
push 0x38
call fcn.0047beb4
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
push 8
pop eax
mov byte [esp + 0x250], al
test esi, esi
je 0x401659
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 8]
call fcn.00404e27
mov ecx, eax
call fcn.0040b51d
push eax
lea ecx, [esp + 0x78]
call fcn.0040bb66
push 9
pop eax
mov byte [esp + 0x250], al
or ebx, 4
lea eax, [esp + 0x74]
mov dword [esp + 0x14], ebx
push eax
push edi
push dword [esp + 0x64]
lea eax, [esp + 0x40]
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x38]
push eax
call fcn.00401836
jmp 0x40165b
xor eax, eax
push 0
push 0
push eax
push 0x401889
push 0
push 0
call fcn.0047c694
add esp, 0x18
mov dword [esp + 0x250], 5
mov esi, eax
test bl, 4
je 0x40168c
lea ecx, [esp + 0x74]
call fcn.0040b62f
test esi, esi
je 0x40169e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x4017d6
mov esi, 0x8007000e
jmp 0x4017d6
and dword [esp + 0x4c], esi
and dword [esp + 0x50], 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x250], 0xc
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [edi + eax]
call edx
mov esi, eax
test esi, esi
js 0x4017be
test byte [esp + 0x1c], 5
je 0x4017be
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4017be
lea ecx, [esp + 0x90]
mov dword [esp + 0x8c], vtable.Json::FastWriter.0
call fcn.0040a708
mov byte [esp + 0xa8], 0
lea eax, [esp + 0x44]
mov byte [esp + 0x250], 0xd
push eax
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x94]
call dword [eax + 4]
push ecx
mov ecx, eax
mov byte [esp + 0x254], 0xe
call fcn.0040b51d
push eax
lea ecx, [esp + 0x13c]
call fcn.004050d5
mov ecx, eax
mov byte [esp + 0x250], 0xf
call fcn.00404b49
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b3ba
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x254], 0x10
call fcn.0040b474
push edi
mov ecx, eax
mov byte [esp + 0x254], 0x11
call fcn.0040b4e4
lea ecx, [esp + 0x74]
mov esi, eax
call fcn.0040bbbf
lea ecx, [esp + 0x18]
call fcn.0040bbdf
lea ecx, [esp + 0x134]
call fcn.0040501c
lea ecx, [esp + 0xac]
call fcn.0040b62f
lea ecx, [esp + 0x8c]
call fcn.0040b3a1
lea ecx, [esp + 0x44]
mov byte [esp + 0x250], 5
call fcn.004782de
jmp 0x4017d6
mov esi, 0x80004005
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 3
call fcn.004782de
lea ecx, [esp + 0xc4]
call fcn.00401aa6
lea ecx, [esp + 0x54]
call fcn.0040bbbf
lea ecx, [esp + 0x64]
call fcn.0040bbbf
lea ecx, [esp + 0x2c]
call fcn.00401aa1
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0047b6bc
mov esp, ebp
pop ebp
ret 0x24