Function at 0x4ab330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x603320]
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 0x4ab351
mov eax, dword [edi]
jmp 0x4ab353
mov eax, edi
mov ebx, dword [sym.imp.dnutility.dll_void___cdecl_utility_log_char_const___int__wchar_t_const__]
push eax
push str.start_crate_qr_bmp_path:__s
push 0x452
push str.view::AppModel::toQRBMP
call ebx
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4ab376
mov esi, dword [esi]
sub esp, 0x10
mov ecx, esi
call fcn.005283f0
add esp, 0x10
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4ab3b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_create_fail_error.code:_d
push 0x45c
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.00576f50
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 0x4ab3ce
mov eax, dword [eax]
push 0x5b89c4
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 0x4ab3f4
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 0x4ab43f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QRcode_file_open_fail_error.code:_d
push 0x464
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.00576f50
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.0052c318
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 0x4ab543
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
lea ebx, [ebx]
test ecx, ecx
jle 0x4ab53b
xor eax, eax
mov edx, ecx
test byte [esi], 1
je 0x4ab52b
lea ecx, [edi + eax]
mov word [ecx + ebx], 0
mov byte [ecx + ebx + 2], 0
inc esi
add eax, 3
dec edx
jne 0x4ab518
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 0x4ab510
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.00576f50
mov esp, ebp
pop ebp
ret