Function at 0x411680
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
push 4
xor edx, edx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x10c], esi
call fcn.0040a780
add esp, 4
test eax, eax
jne 0x4119ea
mov ecx, dword [esi + 0x24]
mov edx, 0xffff
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xf4], eax
test cl, 4
jne 0x4116dc
test ebx, ebx
jne 0x4116fb
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x10], ebx
jne 0x4116fb
movzx eax, word [esi + 0x20]
test ax, ax
je 0x4116fb
dec eax
mov word [esi + 0x20], ax
test ax, ax
je 0x4116f5
add word [esi + 0x22], dx
jmp 0x4116fb
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
lea edx, [ebp - 0xf0]
mov ecx, esi
call fcn.0040e680
cmp word [esi + 0x20], 0
jbe 0x411991
nop dword [eax]
nop word [eax + eax]
movzx eax, word [esi + 0x22]
mov ecx, dword [esi + eax*4 + 0x28]
mov dword [ebp - 0xf8], ecx
movzx edi, word [ecx + 8]
sub edi, 0xc
shr edi, 1
test byte [ecx + 6], 2
je 0x411864
xor ebx, ebx
test edi, edi
je 0x41181c
lea eax, [ecx + 0xc]
mov dword [ebp - 0x108], eax
movzx edx, word [eax]
movzx eax, word [edx + ecx + 4]
add edx, ecx
test al, 1
je 0x4117d8
movzx eax, word [edx + 6]
lea ecx, [ebp - 0x104]
push 0
push ecx
mov ecx, esi
mov eax, dword [eax + edx + 8]
mov edx, eax
mov dword [ebp - 0x100], eax
call fcn.0040a490
add esp, 8
test eax, eax
jne 0x4119de
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x100]
push dword [eax + 8]
lea ecx, [ecx + 0x14]
call fcn.004123e0
add esp, 4
test eax, eax
jne 0x4119de
mov eax, dword [ebp - 0x104]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax + 8]
sub dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x10], 0
jne 0x4117fe
cmp dword [ebp - 0xfc], 0
je 0x411829
jmp 0x4117fe
cmp dword [ebp - 0xfc], 0
je 0x411804
test al, 2
je 0x411804
mov ecx, esi
call fcn.0040d350
mov ecx, dword [esi + 8]
xor edx, edx
call fcn.00411680
test eax, eax
jne 0x4119de
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x108]
inc ebx
add eax, 2
mov dword [ebp - 0x108], eax
cmp ebx, edi
jb 0x411754
cmp dword [ebp - 0xfc], 0
jne 0x411915
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x10], 0
jne 0x411915
mov ebx, 1
movzx eax, word [esi + 0x20]
test ax, ax
je 0x41194c
dec eax
mov word [esi + 0x20], ax
test ax, ax
je 0x411948
mov eax, 0xffff
add word [esi + 0x22], ax
jmp 0x41194c
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x14]
lea edx, [eax - 4]
mov ecx, dword [eax]
add ecx, edi
cmp ecx, dword [edx]
jbe 0x4118b7
mov eax, ecx
lea ebx, [ecx + 0x102]
shr eax, 2
add ebx, eax
and ebx, 0xffffff00
lea eax, [ebx*4]
push eax
push edx
call fcn.0048ed87
add esp, 8
test eax, eax
je 0x4119d9
lea ecx, [ebx - 2]
mov dword [eax], ecx
add eax, 4
mov ecx, dword [ebp - 0xf4]
mov dword [ecx + 0x14], eax
jmp 0x4118bd
mov ecx, dword [ebp - 0xf4]
xor ebx, ebx
test edi, edi
je 0x411915
mov esi, dword [ebp - 0xf8]
mov ebx, edi
mov dword [ebp - 0x100], ebx
add esi, 0xc
mov ebx, dword [ebp - 0xf8]
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov ecx, dword [ecx + 0x14]
movzx edx, word [eax + ebx + 2]
movzx eax, word [eax + ebx]
inc dword [ecx]
shl edx, 0x10
or edx, eax
mov eax, dword [ecx]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp - 0xf4]
sub edi, 1
jne 0x4118e0
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x100]
movzx eax, word [esi + 0x22]
test ax, ax
je 0x411991
mov word [esi + eax*2 + 0xa8], bx
mov ecx, esi
mov ebx, 1
mov edx, ebx
call fcn.0040ac30
test eax, eax
je 0x411986
cmp eax, 0xffff87b2
jne 0x4119de
jmp 0x41183b
and dword [esi + 0x24], 0xfffffffe
xor eax, eax
mov word [esi + 0xa8], ax
lea ecx, [eax + 1]
cmp bx, word [esi + 0x20]
jae 0x411986
lea edx, [esi + 0x2c]
lea edi, [esi + 0xaa]
xor eax, eax
lea edi, [edi + 2]
mov word [edi - 2], ax
lea edx, [edx + 4]
mov eax, dword [ebp + ecx*4 - 0xc8]
inc ecx
mov dword [edx - 4], eax
movzx eax, word [esi + 0x20]
cmp ecx, eax
jb 0x411967
cmp word [esi + 0x20], 0
ja 0x411720
mov ebx, dword [ebp - 0xf4]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebx + 0x14]
mov edi, dword [eax + 0x18]
mov eax, dword [ecx]
mov edx, dword [ecx - 4]
cmp eax, edx
jb 0x4119cf
lea eax, [edx*4 + 0x80004]
push eax
lea eax, [ecx - 4]
push eax
call fcn.0048ed87
add esp, 8
test eax, eax
je 0x4119d9
add dword [eax], 0x1ffff
lea ecx, [eax + 4]
mov dword [ebx + 0x14], ecx
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov dword [ecx + eax*4], edi
xor eax, eax
jmp 0x4119f4
mov eax, 0xc
mov ecx, dword [ebp - 0xf4]
or dword [ecx + 0x40], 2
jmp 0x4119f4
xor ecx, ecx
cmp eax, 0xffff87b2
cmove eax, ecx
and dword [esi + 0x24], 0xfffffffe
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret