Function at 0x10002bbf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x10002e64
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test byte [ebp + 8], 1
je 0x10002d77
mov ecx, dword [esi + 0xb4]
cmp dword [ecx + 0x28], ebx
jne 0x10002d77
mov eax, dword [0x1001f030]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov ecx, dword [ecx + 0x2c]
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
jne 0x10002c15
xor edi, edi
jmp 0x10002c48
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, 3
and al, 0xfc
call fcn.10016950
mov edi, esp
push ebx
push ebx
push dword [ebp - 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, ebx
jne 0x10002c4c
xor eax, eax
jmp 0x10002c53
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea ecx, [ebp - 4]
call fcn.1000438f
push 0x5c
push dword [ebp - 4]
call fcn.100168a7
pop ecx
cmp eax, ebx
pop ecx
jne 0x10002c72
or eax, 0xffffffff
jmp 0x10002c75
sub eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.10002285
push eax
lea ecx, [ebp - 4]
call fcn.10001d92
lea ecx, [ebp - 0xc]
call fcn.10001cd1
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.10003f61
mov ecx, dword [esi + 0xb4]
call fcn.1000949c
mov eax, dword [esi + 0xb4]
mov eax, dword [eax + 0x2c]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10002cbe
xor edi, edi
jmp 0x10002ced
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, 3
and al, 0xfc
call fcn.10016950
mov edi, esp
push ebx
push ebx
push dword [ebp - 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0xb4]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0xb4]
cmp dword [eax + 0x28], 0xffffffff
jne 0x10002d67
push dword [esi + 0xc4]
lea edi, [esi + 0xc4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x1001f268
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
mov eax, dword [esi + 0xb4]
mov ebx, dword [eax + 0x2c]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push ebx
mov ecx, edi
call fcn.10002e70
mov ecx, dword [esi + 0xb0]
call fcn.10011f6b
lea ecx, [ebp - 4]
call fcn.10001cd1
lea ecx, [ebp - 0x10]
jmp 0x10002e5f
lea ecx, [ebp - 4]
call fcn.10001cd1
lea ecx, [ebp - 0x10]
call fcn.10001cd1
cmp dword [ebp + 0x18], ebx
je 0x10002e04
mov ecx, dword [esi + 0xb4]
mov eax, dword [ebp + 0xc]
push ebx
mov edx, dword [ecx + 0x24]
sub eax, edx
mov dword [ebp + 0xc], edx
lea edx, [ebp + 0xc]
push edx
push eax
push dword [ebp + 0x18]
push dword [ecx + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x10002e66
mov eax, dword [esi + 0xb4]
mov ecx, dword [ebp + 0xc]
add dword [eax + 0x24], ecx
mov eax, dword [0x1001f030]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0xb4]
push dword [eax + 0x34]
lea eax, [ebp + 0x18]
push str._s___Downloading...
push eax
call fcn.10002307
add esp, 0xc
lea eax, [ebp + 0x18]
push 1
push ecx
mov ecx, esp
push eax
call fcn.10003f61
mov ecx, dword [esi + 0xb4]
call fcn.1000934e
lea ecx, [ebp + 0x18]
call fcn.10001cd1
test byte [ebp + 8], 4
je 0x10002e64
mov eax, dword [esi + 0xb4]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xb4]
mov dword [eax + 0x28], ebx
mov eax, dword [0x1001f030]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0xb4]
push dword [eax + 0x34]
lea eax, [ebp + 0x18]
push str._s___Downloaded
push eax
call fcn.10002307
add esp, 0xc
lea eax, [ebp + 0x18]
push ebx
push ecx
mov ecx, esp
push eax
call fcn.10003f61
mov ecx, dword [esi + 0xb4]
call fcn.1000934e
lea ecx, [ebp + 0x18]
call fcn.10001cd1
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x14