Function at 0x49c830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5e2320]
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 0x49c851
mov eax, dword [edi]
jmp 0x49c853
mov eax, edi
cmp dword [esi + 0x14], 0x10
jb 0x49c85b
mov ecx, dword [esi]
mov ebx, dword [sym.imp.dnutility.dll_void___cdecl_utility_log_char_const___int__wchar_t_const__]
push eax
push ecx
push str.start_crate_qr_bmp_._content:__s__path:_s
push 0x430
push str.view::AppModel::toQRBMP
call ebx
add esp, 0x14
cmp dword [esi + 0x14], 0x10
jb 0x49c87f
mov esi, dword [esi]
sub esp, 0x10
mov ecx, esi
call fcn.00511f60
add esp, 0x10
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x49c8c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_create_fail_error.code:_d
push 0x43a
push str.view::AppModel::toQRBMP
call ebx
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005600c0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
push edi
push eax
call dword [sym.imp.dnutility.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_utility::ustring::toString_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x49c8d7
mov eax, dword [eax]
push 0x59c6ec
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov esi, eax
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0x6c], esi
jb 0x49c8fd
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 esi, esi
jne 0x49c948
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_file_open_fail_error.code:_d
push 0x442
push str.view::AppModel::toQRBMP
call ebx
push esi
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.005600c0
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x58]
mov ecx, 0x4d42
push esi
push 1
push 0xe
mov edi, dword [edi + 4]
mov word [ebp - 0x14], cx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0xa], 0x36
lea eax, [edi + edi*2]
mov dword [ebp - 0x30], 0x180001
shl eax, 3
cdq
and edx, 7
mov dword [ebp - 0x34], edi
add eax, edx
mov dword [ebp - 0x3c], 0x28
sar eax, 3
add eax, 3
mov dword [ebp - 0x38], edi
cdq
and edx, 3
add eax, edx
and eax, 0xfffffffc
mov ebx, eax
mov dword [ebp - 0x5c], eax
imul ebx, edi
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x36]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVCR120.dll_fwrite]
push esi
push 1
lea eax, [ebp - 0x3c]
push 0x28
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push ebx
call fcn.00515e88
push dword [ebp - 0x64]
mov ebx, eax
push 0xff
push ebx
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0x58]
add esp, 0x30
mov esi, dword [eax + 8]
test edi, edi
jle 0x49ca4b
mov eax, 0x55555556
imul dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
xor edi, edi
test ecx, ecx
jle 0x49ca43
xor eax, eax
mov edx, ecx
jmp 0x49ca20
test byte [esi], 1
je 0x49ca33
lea ecx, [edi + eax]
mov word [ecx + ebx], 0
mov byte [ecx + ebx + 2], 0
inc esi
add eax, 3
dec edx
jne 0x49ca20
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
add edi, edx
dec eax
mov dword [ebp - 0x60], eax
jne 0x49ca13
mov esi, dword [ebp - 0x6c]
push esi
push dword [ebp - 0x64]
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 ebx, dword [ebp - 0x58]
mov esi, dword [sym.imp.MSVCR120.dll_free]
push dword [ebx + 8]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.005600c0
mov esp, ebp
pop ebp
ret