Function at 0x40a4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fc56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push esi
push edi
push str.Share
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.00428470
add esp, 4
lea ecx, [ebp - 0x134]
push eax
push str.Share
call fcn.00404330
push 1
push 0
push 1
push 0x400
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x14]
call fcn.00414340
lea ecx, [ebp - 0x14]
call fcn.004147b0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004148c0
mov edi, dword [ebp + 8]
cmp esi, eax
je 0x40a5a9
nop dword [eax]
cmp byte [0x45c0e0], 0
jne 0x40a599
push edi
call fcn.0040dfd0
add esp, 4
mov byte [0x45c0e0], 1
mov byte [esi], 0
lea ecx, [ebp - 0x14]
inc esi
call fcn.004148c0
cmp esi, eax
jne 0x40a580
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x9c]
push ecx
push eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
call fcn.00409d10
push 9
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
push 0x30
push eax
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.0041c490
add esp, 0x14
mov dword [ebp - 0x38], 9
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
cmovae eax, dword [ebp - 0x48]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0
mov byte [eax + 9], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x6c], 0
cmovae eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], 0
mov byte [eax], 0x31
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.00405a60
mov esi, 0x405
jmp 0x40a663
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405420
cmp byte [0x45c0e1], 0
jne 0x40a68b
push edi
call fcn.0040b750
add esp, 4
mov byte [0x45c0e1], 1
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x9c]
jne 0x40a6bb
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x98]
jne 0x40a6bb
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x94]
jne 0x40a6bb
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x90]
jne 0x40a6bb
mov cl, 1
jmp 0x40a6bd
xor cl, cl
mov edi, dword [ebp - 0x8c]
mov byte [ebp + 0x13], cl
cmp byte [edi + 2], 0x30
jne 0x40a6f4
cmp byte [edi + 3], 0x30
jne 0x40a6f4
cmp byte [edi + 4], 0x30
jne 0x40a6f4
cmp byte [edi + 5], 0x30
jne 0x40a6f4
cmp byte [edi + 6], 0x30
jne 0x40a6f4
cmp byte [edi + 7], 0x30
jne 0x40a6f4
cmp byte [edi + 8], 0x30
jne 0x40a6f4
mov al, 1
jmp 0x40a6f6
xor al, al
test cl, cl
jne 0x40a702
test al, al
je 0x40ab0e
push 0
push 0x400
push 0
lea ecx, [ebp - 0x16c]
call fcn.004078f0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], str._project_:_json___st_:10
push eax
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x50], str._project_:_json___st_:10
call fcn.00407060
mov eax, 0x441624
inc eax
cmp byte [eax], 0
jne 0x40a738
sub eax, 0x441624
mov dword [ebp - 0xe8], 0x441624
xorps xmm0, xmm0
mov dword [ebp - 0xe4], eax
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0xec], eax
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0xf0], 0x441624
push eax
mov word [ebp - 0x9e], si
mov dword [ebp - 0xa4], 0x441624
call fcn.00406190
cmp word [ebp - 0x15e], 3
je 0x40a7bb
push 0x43c
push 0x441648
push str.IsObject__
call fcn.004293af
add esp, 0xc
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x4c]
shl eax, 5
add eax, dword [ebp - 0x164]
mov dword [ebp - 0xc8], eax
cmp ecx, eax
je 0x40a7dc
lea esi, [ecx + 0x10]
jmp 0x40a80a
push 0x41d
push 0x441648
push str.false
call fcn.004293af
add esp, 0xc
xorps xmm0, xmm0
xor eax, eax
mov esi, 0x45c0e4
movups xmmword [0x45c0e4], xmm0
mov word [0x45c0f2], ax
test byte [esi + 0xe], 0x20
jne 0x40a827
push 0x66d
push 0x441648
push str.data_.f.flags__kIntFlag
call fcn.004293af
add esp, 0xc
mov eax, dword [esi]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
add eax, 1
mov ecx, 0x1f6
cdq
mov dword [esi], eax
mov eax, 0xb6
mov dword [esi + 4], edx
cmovns eax, ecx
mov word [esi + 0xe], ax
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0x100
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0x100
mov dword [ebp - 0x100], 0x144
mov byte [ebp - 0xfc], 0
call fcn.00405b90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x40a8bf
push 1
lea ecx, [ebp - 0x30]
call fcn.00405fe0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x40a8e0
push 0x81
push str.d:workcr_natalibs_rapidjsoninclude_rapidjsoninternal_stack.h
push str.stackTop___sizeof_T___count___stackEnd_
call fcn.004293af
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, ecx
inc ecx
mov dword [ebp - 0x24], ecx
mov byte [eax], 0
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov edx, dword [ebp - 0x28]
sub eax, edx
cmp eax, 1
jae 0x40a915
push 0x89
push str.d:workcr_natalibs_rapidjsoninclude_rapidjsoninternal_stack.h
push str.GetSize_____count__sizeof_T_
call fcn.004293af
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
dec ecx
push 0x45cd78
mov dword [ebp - 0x24], ecx
call fcn.004011c0
mov esi, eax
add esp, 8
lea eax, [ebp - 0xf8]
mov ecx, dword [esi]
push eax
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00405220
push eax
call fcn.00401e50
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x40a96c
mov edx, dword [ecx]
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x40a96c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0xa
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movzx eax, al
mov ecx, esi
push eax
call fcn.004057c0
mov ecx, esi
call fcn.00405160
push dword [ebp - 0x110]
call fcn.00424911
push 1
push dword [ebp - 0x114]
call fcn.00412c6d
push dword [ebp - 0x28]
call fcn.00424911
push 1
push dword [ebp - 0x2c]
call fcn.00412c6d
mov esi, dword [ebp - 0x158]
add esp, 0x18
test esi, esi
je 0x40aa17
cmp dword [esi], 0
je 0x40a9f0
nop dword [eax]
mov edi, dword [esi]
cmp edi, dword [esi + 8]
je 0x40a9ea
push dword [esi]
mov edi, dword [edi + 8]
call fcn.00424911
add esp, 4
mov dword [esi], edi
test edi, edi
jne 0x40a9d0
mov edi, dword [ebp - 0x8c]
mov eax, dword [esi]
test eax, eax
je 0x40aa02
cmp eax, dword [esi + 8]
jne 0x40aa02
mov dword [eax + 4], 0
push 1
push dword [esi + 0x10]
call fcn.00412c6d
push 0x14
push esi
call fcn.00412c6d
add esp, 0x10
push dword [ebp - 0x14c]
call fcn.00424911
push 1
push dword [ebp - 0x150]
call fcn.00412c6d
push dword [ebp + 8]
call fcn.0040d480
push 1
mov dword [ebp - 0x18], edi
call fcn.00428603
push eax
push 9
push 1
push edi
call fcn.00428c14
add esp, 0x24
cmp byte [ebp + 0x13], 0
je 0x40aa5c
push str._____match_found_for
jmp 0x40aa61
push 0x441640
call fcn.0040ac00
add esp, 4
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00405290
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40aa84
mov eax, dword [eax]
push eax
push 0x441644
call fcn.0040ac00
mov eax, dword [ebp - 0xb0]
add esp, 8
cmp eax, 0x10
jb 0x40aade
mov ecx, dword [ebp - 0xc4]
inc eax
cmp eax, 0x1000
jb 0x40aad5
test cl, 0x1f
jne 0x40abec
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40abec
sub ecx, eax
cmp ecx, 4
jb 0x40abec
cmp ecx, 0x23
ja 0x40abec
mov ecx, eax
push ecx
call fcn.00412c68
add esp, 4
push 1
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
call fcn.00428603
push eax
call fcn.004289a4
add esp, 8
mov esi, 0x405
inc byte [edi + 8]
cmp byte [edi + 8], 0x39
mov dword [ebp - 0xcc], edi
jle 0x40ab7e
mov byte [edi + 8], 0x30
inc byte [edi + 7]
cmp byte [edi + 7], 0x39
jle 0x40ab7e
mov byte [edi + 7], 0x30
inc byte [edi + 6]
cmp byte [edi + 6], 0x39
jle 0x40ab7e
mov byte [edi + 6], 0x30
inc byte [edi + 5]
cmp byte [edi + 5], 0x39
jle 0x40ab7e
mov byte [edi + 5], 0x30
inc byte [edi + 4]
cmp byte [edi + 4], 0x39
jle 0x40ab7e
mov byte [edi + 4], 0x30
inc byte [edi + 3]
cmp byte [edi + 3], 0x39
jle 0x40ab7e
mov byte [edi + 3], 0x30
inc byte [edi + 2]
cmp byte [edi + 2], 0x39
jle 0x40ab7e
mov byte [edi + 2], 0x30
inc byte [edi + 1]
cmp byte [edi + 1], 0x39
jle 0x40ab7e
mov byte [edi + 1], 0x30
inc byte [edi]
cmp dword [ebp - 0x80], 9
je 0x40a660
mov esi, dword [ebp - 0x88]
xor ecx, ecx
mov dword [ebp - 0xd4], edi
mov edx, esi
add edi, 9
mov dword [ebp - 0x80], 9
sub edx, edi
mov dword [ebp - 0xd0], esi
xor eax, eax
mov byte [ebp - 0xd], 0
cmp edi, esi
cmova edx, ecx
mov ecx, edi
test edx, edx
je 0x40abcb
nop dword [eax + eax]
inc eax
mov byte [ecx], 0
lea ecx, [ecx + 1]
cmp eax, edx
jne 0x40abc0
mov byte [edi], 0x80
mov dword [ebp - 0xd8], esi
mov dword [esi - 8], 0x48
mov dword [esi - 4], 0
mov esi, 0x405
jmp 0x40a660
call fcn.004248b5
int3