Function at 0x100197a0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x1017d44b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp], eax
xor edi, edi
lea ebx, [eax + 0x28]
mov dword [ebp + 4], edi
xor cl, cl
mov dword [ebp - 0x30], ebx
mov byte [ebp + 0xb], cl
mov byte [ebp - 0x2c], cl
test ebx, ebx
je 0x10019820
mov ecx, dword [ebx]
test ecx, ecx
jne 0x100197f9
xor cl, cl
jmp 0x1001981a
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10019811
cmp eax, 0x80
je 0x10019811
xor cl, cl
jmp 0x10019817
mov byte [ebx + 4], 1
mov cl, 1
mov eax, dword [ebp]
mov byte [ebp + 0xb], cl
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], 0
lea esi, [eax + 0x24]
mov dword [ebp - 0x38], esi
test esi, esi
je 0x10019841
mov ecx, dword [esi]
test ecx, ecx
je 0x10019841
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp]
mov byte [ebp - 4], 1
add eax, 0xc
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10019857
mov eax, dword [eax]
push 0x101b0790
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x10019ef0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10019ef0
push 0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [ebp - 0xd8]
add esp, 0xc
and eax, 0xffffff00
mov dword [ebp - 0xd8], eax
and eax, 0xfffffeff
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp], ecx
mov dword [ebp - 0x34], eax
cmp ecx, eax
je 0x10019e02
lea ebx, [ecx + 0x2c]
mov eax, dword [ebp - 0x20]
and eax, 0xffffff00
mov dword [ebp - 0x20], eax
and eax, 0xfffffeff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xb
mov edx, ecx
cmp dword [ebx - 0x18], 8
jb 0x10019918
mov edx, dword [ecx]
push 0xfde9
push dword [ebx - 0x1c]
lea ecx, [ebp + 0x5c]
call fcn.1003ebd0
or edi, 2
add esp, 8
mov dword [ebp + 4], edi
and edi, 0xfffffffd
mov dword [ebp + 4], edi
mov dword [ebp - 4], 0xa
or edi, 1
mov dword [ebp + 4], edi
lea ecx, [ebp + 0x5c]
mov edx, dword [ebp + 0x6c]
mov byte [ebp - 0xf0], 4
or dword [ebp - 0xf0], 0x100
cmp dword [ebp + 0x70], 0x10
mov dword [ebp - 0xec], 0
cmovae ecx, dword [ebp + 0x5c]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
call fcn.100b6970
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
push 0x101b07dc
push str.name
call fcn.100b8aa0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf8]
call fcn.100b77c0
and edi, 0xfffffffe
mov dword [ebp + 4], edi
mov byte [ebp - 4], 9
mov edx, dword [ebp + 0x70]
cmp edx, 0x10
jb 0x10019a01
mov ecx, dword [ebp + 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100199f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019ead
push edx
push ecx
call fcn.10177d58
add esp, 8
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x70], 0xf
mov byte [ebp + 0x5c], 0
mov byte [ebp - 4], 0xf
lea edx, [ebx - 0x14]
cmp dword [ebx], 8
jb 0x10019a21
mov edx, dword [edx]
push 0xfde9
push dword [ebx - 4]
lea ecx, [ebp + 0x44]
call fcn.1003ebd0
or edi, 0x10
add esp, 8
mov dword [ebp + 4], edi
and edi, 0xffffffef
mov dword [ebp + 4], edi
mov dword [ebp - 4], 0xe
or edi, 8
mov dword [ebp + 4], edi
lea ecx, [ebp + 0x44]
mov edx, dword [ebp + 0x54]
mov byte [ebp - 0x108], 4
or dword [ebp - 0x108], 0x100
cmp dword [ebp + 0x58], 0x10
mov dword [ebp - 0x104], 0
cmovae ecx, dword [ebp + 0x44]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
call fcn.100b6970
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
push 0x101b07d4
push str.path
call fcn.100b8aa0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x110]
call fcn.100b77c0
and edi, 0xfffffff7
mov dword [ebp + 4], edi
mov byte [ebp - 4], 9
mov edx, dword [ebp + 0x58]
cmp edx, 0x10
jb 0x10019b0a
mov ecx, dword [ebp + 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10019b00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019ead
push edx
push ecx
call fcn.10177d58
add esp, 8
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov byte [ebp - 0x48], 1
and dword [ebp - 0x48], 0xfffffeff
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
push 0x101b07ec
push str.size
call fcn.100b8aa0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.100b77c0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x60], 1
and dword [ebp - 0x60], 0xfffffeff
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
push 0x101b07e4
push str.time
call fcn.100b8aa0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.100b77c0
mov eax, dword [ebx + 0x14]
cdq
mov byte [ebp - 0x78], 1
and dword [ebp - 0x78], 0xfffffeff
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x28]
push 0x101b0802
push str.pageNo
call fcn.100b8aa0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.100b77c0
mov eax, dword [ebx + 0x18]
mov byte [ebp - 0x90], 1
and dword [ebp - 0x90], 0xfffffeff
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
push 0x101b07f8
push str.viewMode
call fcn.100b8aa0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x98]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x98]
call fcn.100b77c0
mov eax, dword [ebx + 0x1c]
cdq
mov byte [ebp - 0xa8], 1
and dword [ebp - 0xa8], 0xfffffeff
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x28]
push 0x101b0817
push str.fitMode
call fcn.100b8aa0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.100b77c0
mov eax, dword [ebx + 0x20]
cdq
mov byte [ebp - 0xc0], 1
and dword [ebp - 0xc0], 0xfffffeff
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
push 0x101b080e
push str.zoomFactor
call fcn.100b8aa0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.100b77c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.100b7620
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xe0]
call fcn.100b84b0
push eax
lea ecx, [ebp - 0xe0]
call fcn.100b8650
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x128]
push ecx
mov ecx, eax
call fcn.100b7950
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x128]
call fcn.100b77c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.100b77c0
mov ecx, dword [ebp]
add ebx, 0x50
add ecx, 0x50
mov dword [ebp], ecx
cmp ecx, dword [ebp - 0x34]
jne 0x100198e2
mov ebx, dword [ebp - 0x30]
mov dword [ebp + 0xc], vtable.RCJson::Writer.0
mov byte [ebp - 4], 0x20
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0xc], vtable.RCJson::FastWriter.0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0xf
mov byte [ebp + 0x10], 0
mov byte [ebp - 4], 0x21
mov word [ebp + 0x28], 0
mov byte [ebp + 0x2a], 0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0xc]
call fcn.100b5a40
mov byte [ebp - 4], 0x23
lea eax, [ebp + 0x2c]
push dword [ebp - 0x10]
cmp dword [ebp + 0x40], 0x10
push dword [ebp + 0x3c]
cmovae eax, dword [ebp + 0x2c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov byte [ebp - 4], 0x22
mov edx, dword [ebp + 0x40]
cmp edx, 0x10
jb 0x10019ebd
mov ecx, dword [ebp + 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10019eb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10019eb3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10177d58
add esp, 8
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0xf
mov byte [ebp + 0x2c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
call fcn.100190a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.100b77c0
mov byte [ebp + 0xa], 1
jmp 0x10019ef4
mov byte [ebp + 0xa], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x10019f10
mov eax, dword [esi]
test eax, eax
je 0x10019f09
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10019f32
cmp byte [ebp + 0xb], 0
je 0x10019f32
mov ecx, dword [ebx]
test ecx, ecx
je 0x10019f2e
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebx + 4], 0
mov al, byte [ebp + 0xa]
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.10177d47
lea esp, [ebp + 0x78]
pop ebp
ret