Function at 0x5130e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6346
mov eax, dword fs:[0]
push eax
mov eax, 0x1378
call fcn.0059f510
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1344], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1340], 0
push 0xfa
mov dword [ebp - 0x1350], eax
lea eax, [ebp - 0x12bc]
push 0
push eax
mov dword [ebp - 0x130c], 0
mov dword [ebp - 0x1308], 0xf
mov byte [ebp - 0x131c], 0
mov dword [ebp - 0x12f4], 0
mov dword [ebp - 0x12f0], 0xf
mov byte [ebp - 0x1304], 0
mov dword [ebp - 0x12dc], 0
mov dword [ebp - 0x12d8], 0xf
mov byte [ebp - 0x12ec], 0
call sub.VCRUNTIME140.dll_memset
fldz
add esp, 0xc
fst qword [ebp - 0x132c]
fstp qword [ebp - 0x1324]
fld qword [0x5de478]
fstp qword [ebp - 0x12c4]
mov dword [ebp - 0x11bc], 0
mov dword [ebp - 0x11b8], 0
mov dword [ebp - 0x11b4], 0
mov dword [ebp - 0x11a0], 0
mov dword [ebp - 0x119c], 0
mov dword [ebp - 0x1198], 0
mov dword [ebp - 0x1194], 0
mov word [ebp - 0x133c], 0
mov dword [ebp - 0x1338], 0
mov dword [ebp - 0x1334], 0
mov byte [ebp - 0x12d4], 1
mov dword [ebp - 0x12d0], 0x20
mov dword [ebp - 0x12cc], 0x20
mov byte [ebp - 0x12bc], 0
mov dword [ebp - 0x11c0], 0
mov dword [ebp - 0x11b0], 0
mov dword [ebp - 0x11ac], 1
mov dword [ebp - 0x11a8], 0x64
mov dword [ebp - 0x11a4], 0x64
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00530a00
push 0xffffffffffffffff
lea eax, [esi + 0x7c4]
push 0
push 0xfa3
mov ecx, eax
mov dword [ebp - 0x1348], eax
call fcn.00529e10
push 8
add esi, 0xb0c
push 0x5c0498
mov ecx, esi
call fcn.00528190
mov dword [ebp - 0x1358], eax
test eax, eax
jns 0x5132b7
mov dword [ebp - 0x1358], 8
push 0
push str.export.pdf.magnification
mov ecx, esi
call fcn.00528190
mov dword [ebp - 0x11b0], eax
mov ecx, esi
push str.export.pdf.font
lea eax, [ebp - 0xf4]
push eax
call fcn.00528070
mov esi, dword [ebp - 0xe4]
mov dword [ebp - 0x11ac], 1
test esi, esi
je 0x51338a
mov ebx, dword [ebp - 0xe0]
lea ecx, [ebp - 0xf4]
mov edi, dword [ebp - 0xf4]
cmp ebx, 0x10
jb 0x51330f
mov ecx, edi
push 7
push str.Courier
mov edx, esi
call fcn.00436600
add esp, 8
test al, al
je 0x513330
mov dword [ebp - 0x11ac], 0
jmp 0x51338a
lea ecx, [ebp - 0xf4]
cmp ebx, 0x10
jb 0x51333d
mov ecx, edi
push 9
push str.Helvetica
mov edx, esi
call fcn.00436600
add esp, 8
test al, al
je 0x51335e
mov dword [ebp - 0x11ac], 1
jmp 0x51338a
lea ecx, [ebp - 0xf4]
cmp ebx, 0x10
jb 0x51336b
mov ecx, edi
push 5
push str.Times
mov edx, esi
call fcn.00436600
add esp, 8
test al, al
je 0x51338a
mov dword [ebp - 0x11ac], 2
mov edi, dword [ebp - 0x1344]
lea eax, [ebp - 0x10c]
push str.export.pdf.pagesize
push eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0xb0c]
call fcn.00527430
mov esi, eax
mov dword [ebp - 0x1340], 2
lea eax, [ebp - 0x137c]
mov dword [ebp - 0x137c], str.export.pdf.pagesize
push eax
push 0xc8
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x1378], 0
lea ecx, [edi + 0xb0c]
call fcn.00527cb0
lea eax, [ebp - 0xf4]
add esp, 8
cmp eax, esi
je 0x513442
mov ecx, eax
call fcn.0040a8e0
mov eax, dword [esi]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xf0], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xec], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xe0], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x1340], 0
cmp edx, 0x10
jb 0x51348c
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x513482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x513482
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
push 0xc7
lea eax, [ebp - 0xdb]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 0x10
jb 0x5134b7
mov edi, dword [ebp - 0xf4]
mov byte [ebp - 0xdc], 0
mov ebx, 0x1f
test edi, edi
jne 0x5134cb
xor esi, esi
jmp 0x513501
push 0x2c
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x5134e7
sub eax, edi
cmp eax, 0x1f
jge 0x5134e6
mov ebx, eax
inc esi
push ebx
lea eax, [ebp - 0xdc]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + ebx - 0xdc], 0
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
lea eax, [ebp - 0xdc]
push eax
call ebx
add esp, 4
mov dword [ebp - 0x11a8], eax
test eax, eax
jg 0x513527
mov dword [ebp - 0x11a8], 0x264
mov byte [ebp - 0xdc], 0
mov edi, 0x1f
test esi, esi
je 0x513569
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x51354f
sub eax, esi
cmp eax, edi
jge 0x51354f
mov edi, eax
push edi
lea eax, [ebp - 0xdc]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + edi - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
call ebx
add esp, 4
mov dword [ebp - 0x11a4], eax
test eax, eax
jg 0x513589
mov dword [ebp - 0x11a4], 0x318
mov ebx, dword [ebp - 0x1344]
lea eax, [ebp - 0x124]
push str.export.pdf.margins
push eax
mov byte [ebp - 4], 3
lea ecx, [ebx + 0xb0c]
call fcn.00527430
mov esi, eax
mov dword [ebp - 0x1340], 4
lea eax, [ebp - 0x1384]
mov dword [ebp - 0x1384], str.export.pdf.margins
push eax
push 0xc8
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1380], 0
lea ecx, [ebx + 0xb0c]
call fcn.00527cb0
lea eax, [ebp - 0xf4]
add esp, 8
cmp eax, esi
je 0x513641
mov ecx, eax
call fcn.0040a8e0
mov eax, dword [esi]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xf0], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xec], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xe0], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x513681
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x513677
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x513677
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
cmp dword [ebp - 0xe0], 0x10
lea edi, [ebp - 0xf4]
jb 0x513696
mov edi, dword [ebp - 0xf4]
mov byte [ebp - 0xdc], 0
mov ebx, 0x1f
test edi, edi
jne 0x5136aa
xor esi, esi
jmp 0x5136e0
push 0x2c
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x5136c6
sub eax, edi
cmp eax, 0x1f
jge 0x5136c5
mov ebx, eax
inc esi
push ebx
lea eax, [ebp - 0xdc]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + ebx - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
add esp, 4
mov dword [ebp - 0x11a0], eax
test eax, eax
jg 0x513704
mov dword [ebp - 0x11a0], 0x48
mov byte [ebp - 0xdc], 0
mov ebx, 0x1f
test esi, esi
jne 0x513718
xor edi, edi
jmp 0x51374e
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x513734
sub eax, esi
cmp eax, 0x1f
jge 0x513733
mov ebx, eax
inc edi
push ebx
lea eax, [ebp - 0xdc]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + ebx - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
add esp, 4
mov dword [ebp - 0x1198], eax
test eax, eax
jg 0x513772
mov dword [ebp - 0x1198], 0x48
mov byte [ebp - 0xdc], 0
mov ebx, 0x1f
test edi, edi
jne 0x513786
xor esi, esi
jmp 0x5137bc
push 0x2c
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x5137a2
sub eax, edi
cmp eax, 0x1f
jge 0x5137a1
mov ebx, eax
inc esi
push ebx
lea eax, [ebp - 0xdc]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + ebx - 0xdc], 0
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
lea eax, [ebp - 0xdc]
push eax
call ebx
add esp, 4
mov dword [ebp - 0x119c], eax
test eax, eax
jg 0x5137e2
mov dword [ebp - 0x119c], 0x48
mov byte [ebp - 0xdc], 0
mov edi, 0x1f
test esi, esi
je 0x513824
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x51380a
sub eax, esi
cmp eax, edi
jge 0x51380a
mov edi, eax
push edi
lea eax, [ebp - 0xdc]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [ebp + edi - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
call ebx
add esp, 4
mov dword [ebp - 0x1194], eax
test eax, eax
jg 0x513844
mov dword [ebp - 0x1194], 0x48
lea eax, [ebp - 0x11bc]
push eax
push ecx
mov ecx, eax
call fcn.005156a0
xor ebx, ebx
jmp 0x513860
mov eax, dword [ebp - 0x11bc]
lea esi, [ebx*8]
sub esi, ebx
shl esi, 2
push 0
push 0x5af161
mov dword [esi + eax + 0x18], 0
mov ecx, dword [ebp - 0x11bc]
lea ecx, [esi + ecx]
call fcn.0040af10
mov ecx, dword [ebp - 0x1344]
lea eax, [ebp - 0x1d4]
push ebx
push eax
call fcn.00554190
mov byte [ebp - 4], 4
cmp dword [ebp - 0x174], 0
je 0x5139cb
cmp byte [ebp - 0x180], 0
je 0x5138c7
mov eax, dword [ebp - 0x11bc]
or dword [esi + eax + 0x18], 2
cmp dword [ebp - 0x184], 0x190
jle 0x5138de
mov eax, dword [ebp - 0x11bc]
or dword [esi + eax + 0x18], 1
cmp dword [ebp - 0x1a4], 0
je 0x513992
cmp dword [ebp - 0x1a0], 0x10
lea edx, [ebp - 0x1b4]
jb 0x513900
mov edx, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x13c]
call fcn.00512f60
add esi, dword [ebp - 0x11bc]
mov edi, eax
cmp esi, edi
je 0x513951
mov ecx, esi
call fcn.0040a8e0
mov ecx, dword [edi]
mov dword [esi], ecx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x128]
cmp edx, 0x10
jb 0x51398b
mov ecx, dword [ebp - 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x513981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51347c
push edx
push ecx
call fcn.0059e222
add esp, 8
cmp ebx, 0x20
jne 0x5139cb
jmp 0x5139af
cmp ebx, 0x20
jne 0x5139cb
mov ecx, dword [ebp - 0x11bc]
push 6
push str.0_0_0
lea ecx, [ecx + 0x380]
call fcn.0040af10
mov eax, dword [ebp - 0x1b8]
test eax, eax
jle 0x5139c1
add dword [ebp - 0x11b0], eax
jmp 0x5139cb
mov dword [ebp - 0x11b0], 0xa
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 1
call fcn.00512e80
inc ebx
cmp ebx, 0xff
jle 0x513860
mov edx, dword [ebp - 0x11bc]
xor esi, esi
nop
cmp dword [esi + edx + 0x10], 0
lea ecx, [esi + edx]
jne 0x513a1c
lea eax, [edx + 0x380]
cmp ecx, eax
je 0x513a1c
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x513a0f
mov eax, dword [eax]
push edx
push eax
call fcn.0040af10
mov edx, dword [ebp - 0x11bc]
add esi, 0x1c
cmp esi, 0x1be4
jle 0x5139f0
mov edi, dword [ebp - 0x1350]
cmp dword [edi + 0x14], 0
jbe 0x513de0
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
mov dword [ebp - 0x1370], ebx
mov eax, ebx
jb 0x513a4a
mov eax, dword [ebx]
push 0x5c04cc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x1374], esi
test esi, esi
je 0x513de0
mov dword [ebp - 0x1368], 0
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x1360], 0
mov dword [ebp - 0x136c], esi
mov dword [ebp - 0x135c], 1
mov byte [ebp - 4], 6
lea eax, [ebp - 0x136c]
cmp dword [ebp - 0x11b0], 0
mov dword [ebp - 0x11c0], eax
jg 0x513aba
mov dword [ebp - 0x11b0], 0xa
fild dword [ebp - 0x11b0]
fstp qword [ebp - 0x1354]
fld qword [ebp - 0x1354]
fmul qword [0x5de438]
fst qword [ebp - 0x12c4]
call fcn.0059f540
mov ecx, dword [ebp - 0x1198]
mov edx, eax
add ecx, edx
add ecx, dword [ebp - 0x11a0]
cmp dword [ebp - 0x11a8], ecx
jge 0x513afb
mov dword [ebp - 0x11a8], ecx
mov eax, dword [ebp - 0x1194]
add eax, edx
add eax, dword [ebp - 0x119c]
cmp dword [ebp - 0x11a4], eax
jge 0x513b17
mov dword [ebp - 0x11a4], eax
push esi
push 0xf
push 1
push str._PDF_1.3_n_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x12d0], 0x20
xor ecx, ecx
jmp 0x513b40
mov eax, dword [ebp - 0x11ac]
lea esi, [ecx + 1]
lea eax, [ecx + eax*4]
push dword [eax*4 + 0x5c0360]
lea eax, [ebp - 0x12bc]
push esi
push str.___Type_Font_Subtype_Type1_Name_F_d_BaseFont__s_Encoding_WinAnsiEncoding___n
push eax
call fcn.004025c0
mov ecx, dword [ebp - 0x11c0]
lea eax, [ebp - 0x12bc]
add esp, 0x10
push eax
call fcn.00513f20
mov ecx, esi
cmp ecx, 4
jl 0x513b40
mov eax, dword [ebp - 0x11c0]
mov esi, dword [ebp - 0x1348]
mov ecx, esi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1334], eax
call fcn.0052a240
xor edx, edx
mov dword [ebp - 0x1348], eax
mov dword [ebp - 0x1e4], edx
mov ecx, SysReAllocString
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1d8], 0xffffffff
mov byte [ebp - 0x118c], dl
test eax, eax
jne 0x513be6
lea ecx, [ebp - 0x133c]
call fcn.00514a80
jmp 0x513d10
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1340], esi
test eax, eax
jle 0x513d10
cmp edi, ecx
jl 0x513c00
cmp edi, edx
jl 0x513c12
push edi
lea ecx, [ebp - 0x118c]
call fcn.0055ee00
mov ecx, dword [ebp - 0x1e8]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp - 0x1dc]
push 0
push edi
push 0x7da
mov al, byte [ebp + eax - 0x118c]
mov byte [ebp - 0x1350], al
call fcn.00529e10
movzx ebx, al
mov al, byte [ebp - 0x1350]
cmp al, 9
jne 0x513c97
mov eax, esi
mov esi, dword [ebp - 0x1358]
cdq
idiv dword [ebp - 0x1358]
sub esi, edx
add dword [ebp - 0x1340], esi
test esi, esi
je 0x513c73
mov edi, edi
push ebx
push 0x20
lea ecx, [ebp - 0x133c]
call fcn.00514520
sub esi, 1
jne 0x513c60
mov esi, dword [ebp - 0x1340]
inc edi
cmp edi, dword [ebp - 0x1348]
jge 0x513d0a
mov edx, dword [ebp - 0x1e4]
mov ecx, dword [ebp - 0x1e8]
jmp 0x513bf8
cmp al, 0xd
je 0x513cba
cmp al, 0xa
je 0x513cf2
push ebx
push dword [ebp - 0x1350]
lea ecx, [ebp - 0x133c]
call fcn.00514520
inc esi
mov dword [ebp - 0x1340], esi
jmp 0x513c79
mov ecx, dword [ebp - 0x1e8]
lea esi, [edi + 1]
cmp esi, ecx
jl 0x513ccf
cmp esi, dword [ebp - 0x1e4]
jl 0x513ce1
push esi
lea ecx, [ebp - 0x118c]
call fcn.0055ee00
mov ecx, dword [ebp - 0x1e8]
mov eax, esi
sub eax, ecx
mov al, byte [ebp + eax - 0x118c]
cmp al, 0xa
jne 0x513cf2
mov edi, esi
lea ecx, [ebp - 0x133c]
call fcn.00514a80
xor esi, esi
mov dword [ebp - 0x1340], esi
jmp 0x513c79
mov ebx, dword [ebp - 0x1370]
lea ecx, [ebp - 0x133c]
call fcn.005142d0
push dword [ebp - 0x1374]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x513d7d
cmp dword [ebx + 0x14], 8
jb 0x513d36
mov ebx, dword [ebx]
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x1344]
lea eax, [ebp - 0x154]
push str.Could_not_save_file__0_.
push eax
mov ecx, ebx
call fcn.0055a050
push 0x30
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 7
mov edx, dword [ebx]
mov ecx, ebx
push eax
lea eax, [ebx + 0x7ac]
push eax
call dword [edx + 0xbc]
lea ecx, [ebp - 0x154]
call fcn.0040ab30
mov edx, dword [ebp - 0x1368]
test edx, edx
je 0x513e32
mov ecx, dword [ebp - 0x1360]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x513db6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x513db6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0059e222
add esp, 8
mov dword [ebp - 0x1368], 0
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x1360], 0
jmp 0x513e32
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x513deb
mov eax, dword [eax]
mov ebx, dword [ebp - 0x1344]
mov ecx, ebx
push 0
push 0
push eax
push str.Could_not_save_file__0_.
lea eax, [ebp - 0x16c]
push eax
call fcn.0055a050
push 0x30
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 5
mov edx, dword [ebx]
mov ecx, ebx
push eax
lea eax, [ebx + 0x7ac]
push eax
call dword [edx + 0xbc]
lea ecx, [ebp - 0x16c]
call fcn.0040ab30
mov edx, dword [ebp - 0xe0]
cmp edx, 0x10
jb 0x513e6e
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x513e64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x513e64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x133c]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.00513ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 4