Function at 0x432969
Capabilities:
Write file on windows

Disassembly:
push 0x38
push 0x513238
call fcn.0044769c
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], esi
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
or dword [ebp - 0x24], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], esi
je 0x432cef
cmp dword [ebp + 0xc], esi
je 0x432cef
cmp dword [ebp + 0x10], esi
je 0x432cef
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x432cef
lea ecx, [ebx + 0xc]
push ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push str._oi__CALL_DLGetDataUrl__i___i_
push eax
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.004223b7
add esp, 0x24
test eax, 0xfffffffe
je 0x432a11
cmp eax, 0xfffffffe
jne 0x432a05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x432cf6
mov dword [ebp - 0x1c], 0x10d9
jmp 0x432cf6
push dword [ebp - 0x2c]
call sub.ODBC32.dll_SQLFetch
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
jne 0x432a34
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
call fcn.0042288c
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
call fcn.00422e4a
pop ecx
cmp edi, esi
jbe 0x432a66
cmp dword [ebp - 0x20], esi
je 0x432a66
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x432b3a
cmp dword [ebp - 0x20], esi
je 0x432a89
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x20], esi
push 6
pop edx
call fcn.00416997
mov edi, eax
cmp edi, esi
je 0x432b2e
mov ecx, edi
call fcn.004393b6
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x432ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x1b9
push 7
push 0xffffffffffffffff
push eax
mov ecx, str.CreateUniquePath
call fcn.0042cdde
push edi
push str.DownloadBinary:_Error_occured_while_creating_unique_path_with_prefix__s
call fcn.0048bf00
add esp, 0x18
jmp 0x432cf6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x432b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1cb
mov dword [ebp - 0x1c], eax
push 7
push 0xffffffffffffffff
push eax
mov ecx, str.CreateFile
call fcn.0042cdde
add esp, 0x10
jmp 0x432cf6
mov dword [ebp - 0x1c], 0xe
jmp 0x432cf6
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x24]
call fcn.004920f0
pop ecx
pop ecx
test eax, eax
jne 0x432b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1d3
jmp 0x432b14
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x44]
jb 0x432cc4
ja 0x432b73
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 0x48]
jbe 0x432cc4
mov eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x44]
je 0x432b91
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x20]
push str.DownloadBinary:_Partially_downloaded_file_located_at__s._Dowloaded_size____I64u
call fcn.0048bf80
add esp, 0x10
push dword [ebp - 0x20]
lea eax, [ebx + 0x10]
push eax
push ebx
push str.CALL_DLSetDataUrl__i___i___stSl_
push 1
push 1
push esi
push esi
push dword [ebp + 0xc]
call fcn.004223b7
add esp, 0x24
test eax, 0xfffffffe
jne 0x4329f2
mov ebx, 0xa00000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x432b2e
push str.DownloadBinary:_Starting_download_of_file_onto_disk
call fcn.0048bf80
pop ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp edx, dword [ebp - 0x44]
jb 0x432c54
ja 0x432bf9
cmp eax, dword [ebp - 0x48]
jbe 0x432c54
mov ecx, dword [ebp - 0x48]
add ecx, ebx
mov eax, dword [ebp - 0x44]
adc eax, esi
cmp edx, eax
jb 0x432c12
ja 0x432c0e
cmp dword [edi + 0x18], ecx
jbe 0x432c12
mov edi, ebx
jmp 0x432c18
mov edi, dword [edi + 0x18]
sub edi, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 1
push esi
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [eax + 0xc]
test eax, eax
jne 0x432c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x20e
mov ecx, str.DownloadFile
push 7
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], eax
call fcn.0042cdde
add esp, 0x10
cmp dword [ebp - 0x1c], esi
jne 0x432cb2
push dword [ebp + 0x10]
push str.DownloadBinary:_Binary_data__s_downloaded
call fcn.0048bf80
jmp 0x432cbf
push esi
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x215
mov ecx, 0x5000bc
jmp 0x432c44
add dword [ebp - 0x48], edi
adc dword [ebp - 0x44], esi
push esi
push dword [0x5223c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x432be4
mov dword [ebp - 0x1c], 0x45b
push dword [ebp - 0x1c]
push str.DownloadBinary_failed___d_
call fcn.0048bf00
pop ecx
mov ebx, dword [ebp + 0x14]
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebx + 0x10]
push eax
push ebx
push str.CALL_DLSetDataRealSize__i___i___I_
push 1
push 1
push esi
push esi
push dword [ebp + 0xc]
call fcn.004223b7
add esp, 0x24
test eax, 0xfffffffe
je 0x432cf6
jmp 0x4329f2
mov dword [ebp - 0x1c], 0x57
mov dword [ebp - 4], esi
call fcn.00432d09
mov dword [ebp - 4], 0xfffffffe
jmp 0x432d72
cmp dword [ebp - 0x1c], esi
je 0x432d80
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x1c], esi
sete al
call fcn.004476e1
ret