Function at 0x4e3ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x6af320]
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 0x4e3bc1
mov eax, dword [edi]
jmp 0x4e3bc3
mov eax, edi
push eax
push str.start_crate_qr_bmp_path:__s
push 0x4c5
push str.view::AppModel::toQRBMP
call fcn.0056c830
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4e3be3
mov esi, dword [esi]
sub esp, 0x10
mov ecx, esi
call fcn.005a1ea0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x68], esi
test esi, esi
jne 0x4e3c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_create_fail_error.code:_d
push 0x4cf
push str.view::AppModel::toQRBMP
call fcn.0056c830
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0057a390
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4e3c3f
mov eax, dword [eax]
push 0x651414
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 0x4e3c65
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 0x4e3cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_file_open_fail_error.code:_d
push 0x4d7
push str.view::AppModel::toQRBMP
call fcn.0056c830
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.005f24e0
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.005a5d06
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 0x4e3dab
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 0x4e3da3
xor eax, eax
mov edx, ecx
test byte [esi], 1
je 0x4e3d93
lea ecx, [edi + eax]
mov word [ecx + ebx], 0
mov byte [ecx + ebx + 2], 0
inc esi
add eax, 3
dec edx
jne 0x4e3d80
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 0x4e3d78
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.005f24e0
mov esp, ebp
pop ebp
ret