Function at 0x4788b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfab0
mov eax, dword fs:[0]
push eax
mov eax, 0x303c
call fcn.004ce9d0
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x303c], eax
test esi, esi
je 0x478ab8
test eax, eax
je 0x478ab8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x3014], 0
push eax
push edi
mov dword [ebp - 0x3018], 0
mov dword [ebp - 0x14], 0
call fcn.00404ff0
add esp, 8
test eax, eax
jne 0x478939
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x214], eax
jmp 0x47895c
test byte [ebp - 0x14], 0x10
jne 0x47895c
lea eax, [ebp - 0x3018]
mov ecx, edi
push eax
lea eax, [ebp - 0x3014]
push eax
call fcn.00479b40
test eax, eax
jne 0x478b36
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3010], edx
test edi, edi
jne 0x478978
mov dword [esi + 0x28], 0xb
jmp 0x478a5b
lea eax, [esi + 0x2c]
push edi
push eax
call fcn.004050b0
add esp, 8
test eax, eax
jne 0x478995
mov dword [esi + 0x28], 0xc
jmp 0x478a55
push 0
push 0x20
push 2
push 0
push 0
push 0xc0000000
push edi
mov dword [esi + 0x34], 4
call fcn.00405080
add esp, 0x1c
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4789c7
mov dword [esi + 0x28], 2
jmp 0x478a55
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov dword [esi + 4], 4
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0x19
lea eax, [esi + 4]
mov dword [esi + 0x10], 0x17fa
push eax
push dword [esi]
mov dword [esi + 0x14], 0x80
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x478a40
cmp dword [ebp - 0x14], 0x19
je 0x478ad7
push dword [esi]
call dword [ebp - 0x3010]
mov dword [esi + 0x28], 4
mov dword [esi], 0xffffffff
mov edx, dword [ebp - 0x3010]
mov eax, dword [esi + 0x28]
mov dword [edi + 0x214], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [esi]
mov dword [esi + 0x3c], ecx
cmp eax, 0xffffffff
je 0x478a7a
push eax
call edx
mov dword [esi], 0xffffffff
lea eax, [esi + 0x48]
mov dword [esi + 0x20], 0
xorps xmm0, xmm0
mov dword [esi + 0x24], 0
movups xmmword [esi + 4], xmm0
push 0x80
movq qword [esi + 0x14], xmm0
push 0
mov byte [esi + 0x1c], 0
push eax
mov dword [esi + 0x44], 0xffffffff
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [esi]
mov dword [esi + 0x24], 0x19
mov dword [esi + 0x3c], ecx
cmp eax, 0xffffffff
je 0x478af8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
lea eax, [esi + 0x48]
mov dword [esi + 0x20], 0
xorps xmm0, xmm0
mov dword [esi + 0x24], 0
movups xmmword [esi + 4], xmm0
push 0x80
movq qword [esi + 0x14], xmm0
push 0
mov byte [esi + 0x1c], 0
push eax
mov dword [esi + 0x44], 0xffffffff
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x94
lea eax, [ebp - 0x1810]
mov dword [ebp - 0x3038], 0
push 0
push eax
mov dword [ebp - 0x3018], 2
mov dword [ebp - 0x3044], 0
call sub.VCRUNTIME140.dll_memset
push 0x1762
lea eax, [ebp - 0x1778]
mov dword [ebp - 0x177c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov ecx, esi
push 4
push edi
call fcn.00479d10
test eax, eax
je 0x478ab8
mov ecx, esi
call fcn.00479eb0
test eax, eax
jne 0x478bb2
mov eax, dword [esi + 0x28]
mov dword [edi + 0x214], eax
jmp 0x478ab8
push 0x94
lea eax, [ebp - 0x300c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x1762
lea eax, [ebp - 0x2f74]
mov dword [ebp - 0x2f78], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x3014], 0
add esp, 0x18
mov dword [ebp - 0x3010], eax
mov dword [esi + 0x20], eax
mov ecx, esi
lea eax, [ebp - 0x3014]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x300c]
push eax
call fcn.00479430
test eax, eax
je 0x478ca1
cmp dword [ebp - 0x3014], 0
jne 0x478ca1
nop dword [eax + eax]
mov edx, dword [ebp - 0x3010]
xor ecx, ecx
or ecx, dword [ebp - 0x1816]
cmp edx, dword [ebp - 0x182c]
mov eax, dword [ebp - 0x14]
cmovbe edx, dword [ebp - 0x182c]
mov dword [ebp - 0x181e], eax
mov eax, dword [ebp - 0x181a]
mov byte [ebp - 0x181f], 0
mov dword [ebp - 0x3010], edx
cmp ecx, dword [edi + 0x200]
jne 0x478c7b
cmp eax, dword [edi + 0x204]
je 0x478f0d
lea eax, [ebp - 0x3014]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x300c]
push eax
call fcn.00479430
test eax, eax
je 0x478ca1
cmp dword [ebp - 0x3014], 0
je 0x478c30
xor ecx, ecx
mov eax, dword [ebp - 0x3010]
xor edx, edx
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 0x3010], eax
jne 0x478dce
push 0x516788
lea eax, [ebp - 0x4e8]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x516788
lea eax, [ebp - 0x420]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [edi + 0x204]
mov ecx, dword [edi + 0x200]
push str.User
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x1338]
push 0x20
push eax
mov dword [ebp - 0x358], 0x1323
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0xef0], 3
mov dword [ebp - 0xef4], 2
mov dword [ebp - 0xef8], 2
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push str.User
lea eax, [ebp - 0x12f8]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push str.User
lea eax, [ebp - 0x1778]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push str.User
lea eax, [ebp - 0x1738]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [ebp - 0x3010]
add esp, 0x48
inc eax
mov dword [ebp - 0x177c], 5
mov dword [ebp - 0x1810], 0x64
mov dword [ebp - 0x1804], 1
mov dword [ebp - 0x17f8], 1
mov dword [ebp - 0x17f4], 1
mov dword [ebp - 0x1784], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3018], 3
lea eax, [ebp - 0x1810]
mov dword [ebp - 0x3048], eax
lea ecx, [edi + 0x208]
lea eax, [ebp - 0x3030]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x478df5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x4e8]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x3030]
call fcn.004059a0
lea eax, [ebp - 0x3030]
push eax
lea ecx, [edi + 0x20c]
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], 8
jb 0x478e2e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x420]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x3030]
call fcn.004059a0
mov eax, dword [edi + 0x210]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x358]
test eax, eax
movups xmmword [ebp - 0x3028], xmm0
cmovne ecx, eax
mov dword [ebp - 0x3028], 0
mov dword [ebp - 0x358], ecx
mov dword [ebp - 0x3024], 0
mov dword [ebp - 0x3020], 0
mov dword [ebp - 0x301c], 0
push 0x10
mov dword [ebp - 4], 0
call fcn.004ce5f4
add esp, 4
mov dword [ebp - 0x3024], 0
test eax, eax
je 0x478ee6
movq xmm0, qword [ebp - 0x3048]
mov ecx, dword [ebp - 0x3018]
mov dword [eax], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x3028], eax
mov dword [ebp - 0x3020], eax
mov dword [ebp - 0x301c], 1
lea eax, [ebp - 0x3038]
mov ecx, edi
push eax
lea eax, [ebp - 0x3028]
push eax
push esi
call fcn.0047a5c0
test eax, eax
jne 0x478f32
mov eax, dword [esi + 0x28]
mov dword [edi + 0x214], eax
xor edi, edi
jmp 0x478f51
push 0x17fa
lea eax, [ebp - 0x300c]
push eax
lea eax, [ebp - 0x1810]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, 1
jmp 0x478ca3
push 0x17fa
lea eax, [ebp - 0x1810]
push eax
push dword [ebp - 0x303c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, 1
mov ecx, dword [ebp - 0x3028]
test ecx, ecx
je 0x478f73
nop dword [eax + eax]
mov esi, dword [ecx]
push 0x10
push ecx
call fcn.004ce30f
add esp, 8
mov ecx, esi
test esi, esi
jne 0x478f60
mov eax, edi
jmp 0x478aba