Function at 0x4797c9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b69e0
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 3
jne 0x479842
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x30585055
jne 0x479842
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x4799ea
mov ecx, dword [ebp + 0xc]
add ecx, 0x80
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0
jne 0x47986c
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x4799ea
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042f9aa
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4798a1
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
jmp 0x4799ea
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xc], 0
je 0x4799c7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f9aa
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4798d3
jmp 0x4799c7
push 0x53c204
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4799b9
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
je 0x479917
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f9aa
add esp, 0xc
mov dword [ebp - 0x30], eax
jmp 0x479940
cmp dword [ebp + 0x10], 0
jne 0x479940
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x479940
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f9aa
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x479948
jmp 0x4799c7
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0
je 0x4799b7
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
and ecx, 0x80000000
test ecx, ecx
jne 0x4799ac
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f9aa
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x479980
jmp 0x4799b7
push str.InternetOpenA
mov eax, dword [ebp - 0x34]
add eax, 2
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4799ac
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
jmp 0x4799ea
mov ecx, dword [ebp - 0x30]
add ecx, 4
mov dword [ebp - 0x30], ecx
jmp 0x479948
jmp 0x4799c7
mov edx, dword [ebp - 0x24]
add edx, 0x14
mov dword [ebp - 0x24], edx
jmp 0x4798a1
mov dword [ebp - 4], 0xffffffff
jmp 0x4799e7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc