Function at 0x4f1470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x4f1491
mov eax, dword [edi]
jmp 0x4f1493
mov eax, edi
push eax
push str.start_crate_qr_bmp_path:__s
push 0x4cb
push str.view::AppModel::toQRBMP
call fcn.00584a40
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4f14b3
mov esi, dword [esi]
sub esp, 0x10
mov ecx, esi
call fcn.005c10a0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x68], esi
test esi, esi
jne 0x4f14fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_create_fail_error.code:_d
push 0x4d5
push str.view::AppModel::toQRBMP
call fcn.00584a40
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00599450
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4f150f
mov eax, dword [eax]
push 0x674a64
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0x64], ebx
jb 0x4f1535
push dword [ebp - 0x54]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
test ebx, ebx
jne 0x4f1583
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_file_open_fail_error.code:_d
push 0x4dd
push str.view::AppModel::toQRBMP
call fcn.00584a40
push ebx
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 4]
mov ecx, 0x4d42
push ebx
mov word [ebp - 0x14], cx
push 1
lea eax, [edi + edi*2]
mov dword [ebp - 0x5c], edi
shl eax, 3
cdq
and edx, 7
mov dword [ebp - 0xa], 0x36
add eax, edx
mov dword [ebp - 0x30], 0x180001
sar eax, 3
add eax, 3
mov dword [ebp - 0x34], edi
cdq
and edx, 3
mov dword [ebp - 0x3c], 0x28
add eax, edx
mov dword [ebp - 0x38], edi
and eax, 0xfffffffc
mov dword [ebp - 0x60], eax
imul eax, edi
push 0xe
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x28], eax
lea ecx, [eax + 0x36]
mov dword [ebp - 0x12], ecx
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
push ebx
push 1
lea eax, [ebp - 0x3c]
push 0x28
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebp - 0x58]
call fcn.005c4f06
push dword [ebp - 0x58]
mov ebx, eax
push 0xff
push ebx
call sub.MSVCR120.dll_memset
mov esi, dword [esi + 8]
add esp, 0x30
test edi, edi
jle 0x4f167b
mov eax, 0x55555556
imul dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], ecx
xor edi, edi
test ecx, ecx
jle 0x4f1673
xor eax, eax
mov edx, ecx
test byte [esi], 1
je 0x4f1663
lea ecx, [edi + eax]
mov word [ecx + ebx], 0
mov byte [ecx + ebx + 2], 0
inc esi
add eax, 3
dec edx
jne 0x4f1650
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add edi, edx
dec eax
mov dword [ebp - 0x5c], eax
jne 0x4f1648
mov esi, dword [ebp - 0x64]
push esi
push dword [ebp - 0x58]
push 1
push ebx
call dword [sym.imp.MSVCR120.dll_fwrite]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov edi, dword [ebp - 0x68]
mov esi, dword [sym.imp.MSVCR120.dll_free]
push dword [edi + 8]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.006116d0
mov esp, ebp
pop ebp
ret