Function at 0x423f02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1464
call fcn.00454c50
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.00428f26
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
cmp ebx, 2
mov dword [esp + 0x2c], 0x47e43c
mov dword [esp + 0x30], edi
jbe 0x423f65
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
call fcn.00412089
cmp eax, 1
jne 0x423f65
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.00411f94
pop ecx
push eax
lea edi, [esp + 0x1080]
call fcn.004246b7
test al, al
jne 0x423fbe
mov dword [0x47e444], 2
lea eax, [esp + 0x24]
call fcn.004236a0
cmp dword [esp + 0x10], 0
jmp 0x4242dd
mov edi, dword [esp + 0x1c]
push 3
pop esi
cmp edi, esi
je 0x423fd6
cmp edi, 1
je 0x423fd6
mov dword [0x47e444], esi
jmp 0x423fab
push edi
mov ebx, 0x47e44c
mov eax, 0x47e230
call fcn.004247b1
test al, al
jne 0x424001
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e448], eax
mov dword [0x47e444], 4
jmp 0x423fab
cmp edi, esi
je 0x42416c
cmp edi, 1
jne 0x42401b
cmp dword [0x47e414], 2
je 0x42416c
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.00428f4d
test al, al
mov eax, dword [esp + 0x3c]
jne 0x424043
mov eax, 0x4291c7
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 0x4240a8
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 0x424096
push dword [esp + 0x34]
call esi
lea eax, [esp + 0x24]
call fcn.004236a0
cmp dword [esp + 0x10], ebx
jmp 0x4241f2
cmp byte [0x47e3c0], bl
je 0x4240b7
or dword [esp + 0xc], 2
jmp 0x4240bc
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.00428f7c
call eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x42410e
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 0x42408a
push dword [esp + 0x40]
call esi
jmp 0x42408a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
push 0x46be90
push ecx
call fcn.00411f94
pop ecx
push eax
call fcn.004524b4
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x424143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 9
jmp 0x4240f2
cmp dword [esp + 0x40], ebx
je 0x424153
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x34], ebx
je 0x424242
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x424242
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 0x424199
push str.InternetOpenUrlA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4241a1
mov dword [esp + 0x1c], 0x4291cc
xor eax, eax
push eax
push dword [esp + 0x10]
push eax
push eax
call fcn.00411f94
push eax
push dword [0x47e44c]
call dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x424203
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 0x4241e4
push ebx
call esi
lea eax, [esp + 0x24]
call fcn.004236a0
cmp dword [esp + 0x10], 0
je 0x4242e9
push dword [esp + 0x10]
call esi
jmp 0x4242e9
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
push 0x46be90
push ecx
call fcn.00411f94
pop ecx
push eax
call fcn.004524b4
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x424235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47e444], 6
jmp 0x4241d2
test ebx, ebx
je 0x424240
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov dword [esp + 0x20], 1
cmp dword [esp + 0x24], ebx
jne 0x424260
push dword [esp + 0x28]
call fcn.004242f2
cmp eax, 0xc8
jne 0x4242bf
lea esi, [esp + 0x10]
call fcn.00428f26
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x424276
mov eax, 0x403691
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea ecx, [esp + 0xc70]
push ecx
push dword [esp + 0x34]
call eax
test eax, eax
je 0x4242bf
cmp dword [esp + 0x20], ebx
je 0x4242c9
push edi
push 1
push dword [esp + 0x28]
lea eax, [esp + 0xc74]
push eax
call fcn.0045279d
mov eax, dword [esp + 0x30]
add dword [0x47e440], eax
add esp, 0x10
cmp eax, ebx
jne 0x42424a
jmp 0x4242c9
mov dword [0x47e444], 0xa
push edi
call fcn.00452891
pop ecx
lea eax, [esp + 0x24]
call fcn.004236a0
cmp dword [esp + 0x10], ebx
je 0x4242e9
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4