Function at 0x42274e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1464
call fcn.004531b0
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
call fcn.00427abe
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
push 2
pop eax
cmp ebx, eax
mov dword [esp + 0x28], 0x47ea0c
mov dword [esp + 0x2c], edi
jbe 0x4227b4
mov ecx, edi
call fcn.004058fd
call fcn.0040f937
cmp eax, 1
jne 0x4227b4
mov dword [esp + 0xc], SysReAllocString
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x45c]
push eax
lea eax, [esp + 0x868]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
push ecx
xor eax, eax
mov ecx, edi
call fcn.004058fd
mov esi, eax
call fcn.0040f865
pop ecx
push eax
lea edi, [esp + 0x1080]
call fcn.00422f41
test al, al
jne 0x422805
mov dword [0x47ea14], 2
jmp 0x422b52
mov edi, dword [esp + 0x48]
push 3
pop esi
cmp edi, esi
je 0x422820
cmp edi, 1
je 0x422820
mov dword [0x47ea14], esi
jmp 0x422b52
push edi
mov ebx, 0x47ea1c
mov eax, 0x47e7f0
call fcn.0042303b
test al, al
jne 0x42284e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x47ea18], eax
mov dword [0x47ea14], 4
jmp 0x422b52
cmp edi, esi
je 0x4229ec
cmp edi, 1
jne 0x422868
cmp dword [0x47e9e4], 2
je 0x4229ec
xor ebx, ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call fcn.00427ae5
test al, al
mov eax, dword [esp + 0x38]
jne 0x422890
mov eax, 0x427d4e
push ebx
push ebx
push edi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x468]
push ecx
push dword [esp + 0x60]
lea ecx, [esp + 0x878]
push ecx
push dword [0x47ea1c]
call eax
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x4228f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x47ea18], eax
mov dword [0x47ea14], 7
cmp dword [esp + 0x30], ebx
je 0x4228e3
push dword [esp + 0x30]
call esi
lea eax, [esp + 0x20]
call fcn.00421e83
cmp dword [esp + 0x10], ebx
jmp 0x422a6f
cmp byte [0x47e991], bl
je 0x422904
or dword [esp + 0xc], 2
jmp 0x422909
or dword [esp + 0xc], 1
push ebx
push dword [esp + 0x10]
lea ecx, [esp + 0x1070]
push SysReAllocString
push ecx
push eax
lea esi, [esp + 0x50]
call fcn.00427b14
call eax
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x42295b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [esp + 0x3c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x47ea18], eax
mov dword [0x47ea14], 8
je 0x4228d7
push dword [esp + 0x3c]
call esi
jmp 0x4228d7
push 0x46ae18
xor eax, eax
push ecx
mov ecx, dword [ebp + 8]
inc eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
pop ecx
push eax
call fcn.004509d5
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
pop ecx
jne 0x4229c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [esp + 0x3c], edi
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x47ea18], eax
mov dword [0x47ea14], 9
je 0x4229ab
push dword [esp + 0x3c]
call esi
cmp dword [esp + 0x30], edi
je 0x4229b7
push dword [esp + 0x30]
call esi
lea eax, [esp + 0x20]
call fcn.00421e83
cmp dword [esp + 0x10], edi
jmp 0x422a6f
cmp dword [esp + 0x3c], edi
je 0x4229d9
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [esp + 0x30], edi
je 0x422ac4
push dword [esp + 0x30]
jmp 0x422abe
push str.Wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x422a11
push str.InternetOpenUrlA
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, esi
mov ebx, eax
jne 0x422a16
mov ebx, 0x427d53
mov ecx, dword [ebp + 8]
push esi
push dword [esp + 0x10]
xor eax, eax
push esi
push esi
call fcn.004058fd
mov esi, eax
call fcn.0040f865
push eax
push dword [0x47ea1c]
call ebx
test eax, eax
mov dword [esp + 0x24], eax
jne 0x422a80
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x47ea14], 5
test edi, edi
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x47ea18], eax
je 0x422a61
push edi
call esi
lea eax, [esp + 0x20]
call fcn.00421e83
cmp dword [esp + 0x10], 0
je 0x422b6c
push dword [esp + 0x10]
call esi
jmp 0x422b6c
push 0x46ae18
xor eax, eax
push ecx
mov ecx, dword [ebp + 8]
inc eax
call fcn.004058fd
mov esi, eax
call fcn.0040f865
pop ecx
push eax
call fcn.004509d5
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x422ab9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x47ea14], 6
jmp 0x422a4f
test edi, edi
je 0x422ac4
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
inc edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x20], 0
jne 0x422ae2
push dword [esp + 0x24]
call fcn.00422b75
cmp eax, 0xc8
jne 0x422b41
lea esi, [esp + 0x10]
call fcn.00427abe
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x422af8
mov eax, 0x409926
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea ecx, [esp + 0xc70]
push ecx
push dword [esp + 0x30]
call eax
test eax, eax
je 0x422b41
cmp dword [esp + 0x1c], 0
je 0x422b4b
push ebx
push edi
push dword [esp + 0x24]
lea eax, [esp + 0xc74]
push eax
call fcn.00450cbe
mov eax, dword [esp + 0x2c]
add dword [0x47ea10], eax
add esp, 0x10
test eax, eax
jne 0x422acb
jmp 0x422b4b
mov dword [0x47ea14], 0xa
push ebx
call fcn.00450db2
pop ecx
lea eax, [esp + 0x20]
call fcn.00421e83
cmp dword [esp + 0x10], 0
je 0x422b6c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4