Function at 0x423f33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1464
call fcn.00454c70
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.00428f57
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
cmp ebx, 2
mov dword [esp + 0x2c], 0x47e43c
mov dword [esp + 0x30], edi
jbe 0x423f96
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.004120ba
cmp eax, 1
jne 0x423f96
mov dword [esp + 0xc], connect
mov eax, dword [edi + 4]
mov esi, dword [eax]
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 + 0x2c]
push eax
push ecx
call fcn.00411fc5
pop ecx
push eax
lea edi, [esp + 0x1080]
call fcn.004246e8
test al, al
jne 0x423fef
mov dword [0x47e444], 2
lea eax, [esp + 0x24]
call fcn.004236d1
cmp dword [esp + 0x10], 0
jmp 0x42430e
mov edi, dword [esp + 0x1c]
push 3
pop esi
cmp edi, esi
je 0x424007
cmp edi, 1
je 0x424007
mov dword [0x47e444], esi
jmp 0x423fdc
push edi
mov ebx, 0x47e44c
mov eax, 0x47e230
call fcn.004247e2
test al, al
jne 0x424032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e448], eax
mov dword [0x47e444], 4
jmp 0x423fdc
cmp edi, esi
je 0x42419d
cmp edi, 1
jne 0x42404c
cmp dword [0x47e414], 2
je 0x42419d
xor ebx, ebx
lea esi, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
call fcn.00428f7e
test al, al
mov eax, dword [esp + 0x3c]
jne 0x424074
mov eax, 0x4291f8
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 [0x47e44c]
call eax
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x4240d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x47e448], eax
mov dword [0x47e444], 7
cmp dword [esp + 0x34], ebx
je 0x4240c7
push dword [esp + 0x34]
call esi
lea eax, [esp + 0x24]
call fcn.004236d1
cmp dword [esp + 0x10], ebx
jmp 0x424223
cmp byte [0x47e3c0], bl
je 0x4240e8
or dword [esp + 0xc], 2
jmp 0x4240ed
or dword [esp + 0xc], 1
push ebx
push dword [esp + 0x10]
lea ecx, [esp + 0x1070]
push connect
push ecx
push eax
lea esi, [esp + 0x54]
call fcn.00428fad
call eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x42413f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 8
cmp dword [esp + 0x40], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x47e448], eax
je 0x4240bb
push dword [esp + 0x40]
call esi
jmp 0x4240bb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
push 0x46be90
push ecx
call fcn.00411fc5
pop ecx
push eax
call fcn.004524d4
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x424174
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 9
jmp 0x424123
cmp dword [esp + 0x40], ebx
je 0x424184
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x34], ebx
je 0x424273
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x424273
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, dword [eax]
push str.Wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4241ca
push str.InternetOpenUrlA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4241d2
mov dword [esp + 0x1c], 0x4291fd
xor eax, eax
push eax
push dword [esp + 0x10]
push eax
push eax
call fcn.00411fc5
push eax
push dword [0x47e44c]
call dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x424234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 5
test ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x47e448], eax
je 0x424215
push ebx
call esi
lea eax, [esp + 0x24]
call fcn.004236d1
cmp dword [esp + 0x10], 0
je 0x42431a
push dword [esp + 0x10]
call esi
jmp 0x42431a
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
push 0x46be90
push ecx
call fcn.00411fc5
pop ecx
push eax
call fcn.004524d4
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x424266
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 6
jmp 0x424203
test ebx, ebx
je 0x424271
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], ebx
jne 0x424291
push dword [esp + 0x28]
call fcn.00424323
cmp eax, 0xc8
jne 0x4242f0
lea esi, [esp + 0x10]
call fcn.00428f57
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4242a7
mov eax, 0x4036c2
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea ecx, [esp + 0xc70]
push ecx
push dword [esp + 0x34]
call eax
test eax, eax
je 0x4242f0
cmp dword [esp + 0x20], ebx
je 0x4242fa
push edi
push 1
push dword [esp + 0x28]
lea eax, [esp + 0xc74]
push eax
call fcn.004527bd
mov eax, dword [esp + 0x30]
add dword [0x47e440], eax
add esp, 0x10
cmp eax, ebx
jne 0x42427b
jmp 0x4242fa
mov dword [0x47e444], 0xa
push edi
call fcn.004528b1
pop ecx
lea eax, [esp + 0x24]
call fcn.004236d1
cmp dword [esp + 0x10], ebx
je 0x42431a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4