Function at 0x10021280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x9b8
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
push 0xffffffffffffffff
push 0x1024d710
lea ecx, [ebp - 0x130]
call esi
push 0xffffffffffffffff
push 0x1024d710
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov byte [ebp - 4], 1
call fcn.10013f00
add esp, 8
test eax, eax
je 0x1002132f
push 0x1024dd98
lea ecx, [edi + 0xc]
call dword [0x101d9b14]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
lea ecx, [ebp - 0xa0]
call esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0x4110001
jmp 0x100215bf
lea ecx, [ebp - 0x9c0]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TBuffer::constructor_void_]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0xa0]
call esi
push eax
lea ecx, [ebp - 0x9c0]
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TBuffer::Base64Decode_wchar_t_const__]
push str.qr.jpg
lea edx, [ebp - 0x1c0]
push edx
lea ecx, [edi + 0x1f4]
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString___thiscall_TCommon::TString::operator_wchar_t_const__]
mov byte [ebp - 4], 3
test byte [0x10268774], 1
jne 0x100213a6
or dword [0x10268774], 1
mov ecx, 0x102686e8
mov byte [ebp - 4], 4
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
push 0x101d8bb0
call fcn.101cebcb
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c0]
call dword [sym.imp.szutils.dll_public:_unsigned_long_int___thiscall_TCommon::TBuffer::GetLength_void_const]
lea ecx, [ebp - 0x9c0]
mov dword [ebp - 0x9a8], eax
call dword [sym.imp.szutils.dll_public:_unsigned_char____thiscall_TCommon::TBuffer::GetData_void_const]
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x9ac], eax
call esi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10021421
mov ecx, dword [ebp - 0x9a8]
mov edx, dword [ebp - 0x9ac]
push 0
lea eax, [ebp - 0x9a4]
push eax
push ecx
push edx
push ebx
mov dword [ebp - 0x9a4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x9a0]
push eax
call fcn.10008050
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 5
call esi
mov ebx, dword [reloc.szutils.dll___4TString_TCommon__QAEABV01_PB_W_Z]
push eax
lea ecx, [ebp - 0x418]
call ebx
lea ecx, [ebp - 0x130]
call esi
push eax
lea ecx, [ebp - 0x36c]
call ebx
mov edx, dword [edi + 8]
push 0
push Ordinal_1
push Ordinal_1
push Ordinal_1
push Ordinal_1
push 0
push 0x96c80000
lea ecx, [edi + 0x128]
push 0x1024d710
mov dword [ebp - 0x254], ecx
push edx
lea ecx, [ebp - 0x9a0]
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
lea ecx, [ebp - 0x9a0]
call dword [sym.imp.DuiLib_u.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
cmp eax, 2
jne 0x10021509
push str._u7b
lea ecx, [edi + 0xc]
call ebx
lea eax, [ebp - 0x9a0]
push eax
mov byte [ebp - 4], 3
call fcn.10008150
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
lea ecx, [ebp - 0x1c0]
call esi
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 1
call dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TBuffer::destructor_void_]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0x4000010
jmp 0x100215bf
cmp eax, 1
je 0x10021570
lea esi, [ebp - 0x250]
lea eax, [ebp - 0x9a0]
call fcn.10008d50
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 6
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_class_TCommon::TString_const__]
mov byte [ebp - 4], 5
mov ecx, esi
mov esi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
call esi
lea ecx, [ebp - 0x9a0]
push ecx
mov byte [ebp - 4], 3
call fcn.10008150
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 1
call dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TBuffer::destructor_void_]
mov byte [ebp - 4], 0
jmp 0x1002130e
lea edx, [ebp - 0x9a0]
push edx
mov byte [ebp - 4], 3
call fcn.10008150
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
lea ecx, [ebp - 0x1c0]
call esi
lea ecx, [ebp - 0x9c0]
mov byte [ebp - 4], 1
call dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TBuffer::destructor_void_]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret