Function at 0x408990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
mov eax, 1
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x60]
test edi, edi
je 0x4089ac
cmp dword [edi], 0xbab1e
je 0x4089b4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x44]
test eax, eax
je 0x408c38
lea eax, [edi + 0x44]
lea edx, [esp + 0x28]
call fcn.00407ed0
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
jge 0x408c40
test eax, eax
js 0x408c40
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x408c7a
lea ebx, [esp + 0x2c]
xor esi, esi
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov eax, ebp
call fcn.00408150
mov edx, 0x10
lea ecx, [edx - 0x10]
bt eax, ecx
jae 0x408b82
add esi, 1
bt eax, edx
mov ecx, dword [ebx + edx*4 - 0x40]
jb 0x408b8f
cmp ecx, 0xffffffff
je 0x408a37
add edx, 1
cmp edx, 0x15
jne 0x408a0e
mov ebp, dword [ebp]
test ebp, ebp
jne 0x408a00
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], 0
add eax, esi
mov ebx, eax
or ebx, dword [esp + 0x68]
jne 0x408c4f
test esi, esi
je 0x408ba0
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x408ba0
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
lea ebx, [esp + 0x2c]
xor edi, edi
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov edx, ebx
call fcn.00408150
xor edx, edx
bt eax, edx
mov ecx, 0xffffffff
jae 0x408aae
mov ebp, dword [ebx + edx*4]
lea ecx, [esi + edi*8]
add edi, 1
mov dword [ecx], ebp
mov ebp, 1
mov word [ecx + 4], bp
mov ecx, dword [ebx + edx*4]
lea ebp, [edx + 0x10]
bt eax, ebp
jae 0x408acd
mov ebp, dword [ebx + edx*4]
lea ecx, [esi + edi*8]
add edi, 1
mov dword [ecx], ebp
mov ebp, 4
mov word [ecx + 4], bp
mov ecx, dword [ebx + edx*4]
cmp ecx, 0xffffffff
je 0x408ada
add edx, 1
cmp edx, 5
jne 0x408a8d
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x408a80
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
test ebx, ebx
je 0x408b53
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
lea eax, [eax + edi*8 + 4]
lea edx, [ebx + 4]
xor ebx, ebx
lea esi, [esi]
mov ecx, dword [edx - 4]
mov dword [eax - 4], ecx
xor ecx, ecx
mov word [eax], cx
movzx ecx, word [edx]
test cl, 1
je 0x408b2e
mov ecx, 1
mov word [eax], cx
movzx ecx, word [edx]
test cl, 2
je 0x408b3a
or word [eax], 2
movzx ecx, word [edx]
and ecx, 4
je 0x408b43
or word [eax], 4
add ebx, 1
add edi, 1
add eax, 8
add edx, 8
cmp ebp, ebx
ja 0x408b10
test edi, edi
jne 0x408bb0
xor edi, edi
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [0x4ea01c]
mov edx, dword [esp + 0x70]
test edx, edx
je 0x408c73
mov eax, dword [esp + 0x70]
mov dword [eax], edi
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
bt eax, edx
jae 0x408a37
mov ecx, dword [ebx + edx*4 - 0x40]
add esi, 1
jmp 0x408a2a
mov eax, dword [esp + 0x68]
xor edi, edi
test eax, eax
jne 0x408af4
jmp 0x408b57
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Curl_poll__d_ds___d_ms__n
mov dword [esp], 0
mov dword [esp + 0xc], ebx
call fcn.0041b5c0
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0040ca40
test eax, eax
mov edi, eax
je 0x408b57
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x408b59
mov ebp, dword [esp + 0x68]
lea eax, [ebx + esi*8]
xor ecx, ecx
movzx ebx, word [eax + ecx*8 + 6]
mov edx, ebx
and edx, 1
mov esi, edx
or esi, 4
test bl, 4
cmovne edx, esi
mov esi, edx
or esi, 2
and ebx, 2
cmovne edx, esi
mov esi, dword [esp + 0x64]
mov word [esi + ecx*8 + 6], dx
add ecx, 1
cmp ebp, ecx
jne 0x408c03
jmp 0x408b59
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
jmp 0x4089e5
xor esi, esi
shl eax, 3
mov dword [esp], eax
call dword [0x4ea020]
mov ebx, eax
mov dword [esp + 0x14], eax
mov eax, 3
test ebx, ebx
jne 0x408a58
jmp 0x4089ac
xor eax, eax
jmp 0x4089ac
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x408c4d
mov dword [esp + 0x14], 0
jmp 0x408b57