Function at 0x5a708e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x45c
mov ebx, eax
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x44c], ecx
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x428]
mov ecx, 4
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0049cae9
mov dword [ebp - 0x430], eax
test eax, eax
jne 0x5a70fd
mov eax, dword [ebp + 8]
call fcn.004266af
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.No_UDTA_for_type__s_found_n
jmp 0x5a7392
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ecx
test ebx, ebx
jne 0x5a714d
or eax, 0xffffffff
call fcn.00427b4d
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.004266af
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error_dumping_UDTA__s:__s_n
mov dword [esp], eax
call fcn.005adc24
jmp 0x5a7425
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x5a710f
test esi, esi
je 0x5a716a
mov edx, esi
mov eax, ebx
call fcn.0049b00f
test eax, eax
je 0x5a710f
mov ebx, dword [eax + 0x18]
jmp 0x5a716d
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x5a710f
xor esi, esi
cmp dword [ebp + 8], 0x75756964
cmovne esi, dword [ebp + 8]
lea edx, [ebp - 0x418]
mov ecx, 0x10
mov al, 1
mov edi, edx
rep stosb byte es:[edi], al
xor edx, edx
mov dword [ebp - 0x42c], edx
lea edx, [ebp - 0x42c]
mov eax, dword [ebx + 0x18]
call fcn.00425f4e
mov edi, eax
test eax, eax
je 0x5a710f
mov eax, dword [edi]
cmp eax, 0x75756964
jne 0x5a71d9
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x428]
mov dword [esp + 4], eax
lea eax, [edi + 4]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jmp 0x5a71db
cmp eax, esi
jne 0x5a7197
mov dword [esp], 1
xor edx, edx
xor ecx, ecx
xor eax, eax
call fcn.00425f6d
mov dword [ebp - 0x43c], eax
xor eax, eax
mov dword [ebp - 0x42c], eax
lea edx, [ebp - 0x42c]
mov eax, dword [edi + 0x14]
call fcn.00425f4e
mov ebx, eax
test eax, eax
je 0x5a72e1
mov eax, dword [ebx]
mov dword [ebp - 0x440], eax
cmp eax, 0x554e4b4e
jne 0x5a723e
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x440], eax
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x448], eax
lea edx, [esi + 8]
jmp 0x5a726a
cmp dword [ebp - 0x440], 0x75756964
jne 0x5a725b
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x448], eax
lea edx, [esi + 0x18]
jmp 0x5a726a
mov edx, dword [ebp - 0x43c]
mov eax, ebx
call fcn.00497b36
jmp 0x5a71fd
mov eax, dword [ebp - 0x43c]
call fcn.00426392
mov edx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x43c]
call fcn.00426392
cmp dword [ebp - 0x440], 0x75756964
jne 0x5a72a5
lea edx, [edi + 4]
mov ecx, 0x10
mov eax, dword [ebp - 0x43c]
call fcn.00427720
cmp dword [ebp - 0x448], 0
je 0x5a72c6
mov ecx, esi
mov edx, dword [ebp - 0x448]
mov eax, dword [ebp - 0x43c]
call fcn.00427720
jmp 0x5a71fd
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x5a71fd
mov edx, dword [ebp - 0x43c]
call fcn.00598681
jmp 0x5a71fd
lea ecx, [ebp - 0x430]
lea edx, [ebp - 0x434]
mov eax, dword [ebp - 0x43c]
call fcn.004274c2
mov eax, dword [ebp - 0x43c]
call fcn.004260fd
cmp dword [ebp - 0x444], 0
je 0x5a739f
cmp dword [ebp - 0x44c], 0
lea ebx, [ebp - 0x418]
je 0x5a7333
mov eax, dword [ebp - 0x444]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
jmp 0x5a7359
mov eax, dword [ebp + 8]
call fcn.004266af
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x444]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s.udta
mov dword [esp], ebx
call fcn.005ae188
mov edx, 0x60c2f1
mov eax, ebx
call fcn.00427968
mov esi, eax
test eax, eax
jne 0x5a73ae
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cannot_open_file__s_n
mov dword [esp], eax
call fcn.005adc24
jmp 0x5a7425
mov dword [esp], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x430]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, eax
cmp dword [ebp - 0x444], 0
je 0x5a73e4
mov eax, esi
call fcn.00425b84
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
cmp ebx, dword [ebp - 0x430]
je 0x5a7425
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 4], eax
mov dword [esp], str.Error_writing_udta_to_file_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov eax, dword [ebp - 0x434]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x45c
pop ebx
pop esi
pop edi
pop ebp
ret