Function at 0x102a0580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x4c]
mov ebx, dword [eax + 0x10]
sub ebx, 8
mov dword [esp + 0x10], ebx
test edi, edi
jle 0x102a064a
lea edx, [ebp*8]
lea ebx, [ebp*4]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x5c]
cmp dword [ebx + eax], 0
jne 0x102a062f
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x10]
mov edi, dword [eax + edx + 4]
cmp edi, 0xfffffff2
jae 0x102a05df
mov edi, 0xe
jmp 0x102a05e1
not edi
mov eax, edi
or eax, 0x4580
mov word [esi + 0x74], ax
mov ax, word [esi + 0x68]
add ax, bp
add ax, cx
mov ecx, esi
mov word [esi + 0x70], ax
mov eax, 4
mov word [esi + 0x72], ax
call fcn.102863f0
mov ecx, eax
cmp edi, 2
ja 0x102a061d
imul ecx, edi, 0xffffff
add ecx, 0x7fff
mov eax, dword [esi + 0x5c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov dword [ebx + eax], ecx
mov ecx, dword [esp + 0x14]
inc ecx
add edx, 8
add ebx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, edi
jl 0x102a05c0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov eax, ecx
and eax, 6
cmp al, 6
jne 0x102a06ad
nop word [eax + eax]
dec dword [esi + 0xa0]
sar ecx, 3
cmp dword [esi + 0xa0], 0
jle 0x102a0ab7
sub dword [esi + 0x68], ecx
mov eax, ecx
neg eax
dec ecx
shl eax, 2
add ebp, ecx
add dword [esi + 0x5c], eax
inc edi
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x38], edi
mov dword [eax + ebp*4], 0x2007ffd
mov eax, dword [ebx + 4]
and eax, 0xfffffff8
sub ebx, eax
mov dword [esp + 0x10], ebx
mov ecx, dword [ebx + 4]
mov eax, ecx
and eax, 6
cmp al, 6
je 0x102a0660
mov edx, dword [esi + 0xa0]
test edx, edx
jne 0x102a07ba
cmp dword [esi + 0x58], edx
je 0x102a07ba
mov eax, dword [esi + 0x50]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x45
je 0x102a06e6
cmp eax, 0x46
je 0x102a06e6
cmp eax, 0x47
je 0x102a06e6
cmp eax, 0x48
jne 0x102a07ba
test byte [ebx + 4], 3
jne 0x102a0725
cmp dword [esi + 0x8dc], 0
jne 0x102a07ba
mov eax, dword [esi + 0x2c]
and eax, 0xff
cmp eax, 0x45
je 0x102a07ba
cmp eax, 0x46
je 0x102a07ba
cmp eax, 0x47
je 0x102a07ba
cmp eax, 0x48
je 0x102a07ba
xor ebx, ebx
test ebp, ebp
jle 0x102a079f
cmp ebp, 4
jb 0x102a0786
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x5c]
mov dword [esp + 0x30], ecx
lea edx, [ecx - 4]
lea edx, [edx + ebp*4]
cmp ecx, eax
ja 0x102a0748
cmp edx, eax
jae 0x102a0786
mov eax, ebp
and eax, reloc.WS2_32.dll_closesocket
jns 0x102a0756
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, ebp
sub ecx, eax
nop word [eax + eax]
add ebx, 4
cmp ebx, ecx
jl 0x102a0760
mov edi, dword [esp + 0x30]
lea eax, [ecx + 3]
cdq
and edx, 3
lea ecx, [edx + eax]
sar ecx, 2
shl ecx, 4
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x38]
cmp ebx, ebp
jge 0x102a079f
nop word [eax + eax]
mov eax, dword [esi + 0x5c]
mov dword [eax + ebx*4], 0
inc ebx
cmp ebx, ebp
jl 0x102a0790
push 0
lea eax, [edi + ebp]
push 7
push esi
mov dword [esi + 0x64], eax
call fcn.102a2220
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [ebx + 4]
mov eax, ecx
and eax, 7
cmp al, 3
jne 0x102a07f3
lea eax, [edx - 1]
sar ecx, 3
mov dword [esi + 0xa0], eax
test eax, eax
js 0x102a0ab7
sub dword [esi + 0x68], ecx
add ebp, ecx
neg ecx
shl ecx, 2
add dword [esi + 0x5c], ecx
mov eax, dword [ebx + 4]
and eax, 0xfffffff8
sub ebx, eax
mov dword [esp + 0x10], ebx
mov ecx, dword [ebx + 4]
test cl, 3
jne 0x102a0a44
mov ecx, dword [ecx - 4]
mov eax, ecx
shr eax, 0x18
test eax, eax
lea edx, [eax - 1]
cmove edx, edi
shr ecx, 8
movzx eax, cl
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
lea eax, [eax*8 + 8]
sub ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
sub eax, 0x40
mov dword [esp + 0x20], eax
test byte [eax + 0x25], 8
jne 0x102a0abf
cmp dword [esi + 0xa0], 0
jne 0x102a0905
cmp dword [esi + 0x58], 0
je 0x102a0905
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x10]
sub eax, 8
cmp ebx, eax
jne 0x102a0905
movzx eax, word [esi + 0x13a]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x102a08f8
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], ecx
lea edx, [ecx + eax*8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
cmp dword [edx], eax
jne 0x102a08e8
movzx eax, word [esi + 0x122]
xor edi, edi
test eax, eax
je 0x102a08e8
mov esi, dword [esp + 0x24]
lea edx, [esi + eax*8]
movzx eax, word [edx]
lea ecx, [edi + 1]
cmp eax, dword [esp + 0x1c]
movzx eax, word [edx + 6]
cmovne ecx, edi
mov edi, ecx
test eax, eax
jne 0x102a08a0
mov esi, dword [esp + 0x30]
test edi, edi
je 0x102a08e1
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x8d8]
jne 0x102a0ac7
mov eax, dword [esi + 0x9c]
add eax, edi
cmp eax, dword [esi + 0x5f0]
jg 0x102a091e
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
movzx eax, word [edx + 6]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x102a0880
mov edi, dword [esp + 0x38]
push esi
call fcn.1029c6c0
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
test edx, edx
jle 0x102a095e
mov ebx, dword [esp + 0x14]
shl ebp, 2
mov edx, dword [esi + 0x5c]
cmp eax, edi
jge 0x102a0945
mov ecx, dword [edx + ebp]
jmp 0x102a094a
mov eax, dword [esp + 0x38]
add eax, ebp
push esi
mov dword [esi + 0x64], eax
call fcn.1029c830
movzx eax, word [esi + 0x40]
push eax
push 5
push esi
call fcn.102a2220
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, 0x7fff
mov dword [edx + eax*4 - 4], ecx
add ebp, 4
inc eax
cmp eax, ebx
jl 0x102a0912
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
lea eax, [edx + ebp]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0xa0]
test eax, eax
jle 0x102a099a
dec eax
mov ecx, 0xfffffffc
mov dword [esi + 0xa0], eax
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 0x68], eax
lea eax, [ebp*4]
pop edi
sub ecx, eax
add dword [esi + 0x5c], ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0x8dc], 0
jne 0x102a09c3
mov eax, dword [esi + 0x2c]
and eax, 0xff
cmp eax, 0x45
je 0x102a09c3
cmp eax, 0x46
je 0x102a09c3
cmp eax, 0x47
je 0x102a09c3
cmp eax, 0x48
jne 0x102a0acf
cmp byte [esi + 0x6d], 0
jne 0x102a0ab7
push 7
push dword [esp + 0x24]
push esi
call fcn.102869a0
push dword [ebx + 4]
mov edi, eax
push 0x18
push esi
call fcn.10286c90
mov ecx, 0xb85
mov word [esi + 0x70], di
add esp, 0x18
mov word [esi + 0x74], cx
mov ecx, esi
mov word [esi + 0x72], ax
call fcn.102af4a0
mov ecx, dword [esi + 0x5c]
mov eax, dword [esp + 0x14]
inc dword [esi + 0xa4]
shl eax, 2
push eax
lea eax, [ecx - 4]
mov byte [esi + 0x6d], 1
push eax
lea eax, [ecx + ebp*4]
push eax
call sub.VCRUNTIME140.dll_memmove
lea eax, [ebp*4 + 4]
push eax
mov eax, dword [esi + 0x5c]
sub eax, 4
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, ecx
and al, 7
cmp al, 2
jne 0x102a0ab7
mov eax, dword [ebx - 8]
sar ecx, 3
add dword [esi + 0xa0], 0xfffffffe
mov dword [esp + 0x38], eax
js 0x102a0ab7
mov edx, dword [esi + 0x5c]
lea eax, [ecx*4]
sub dword [esi + 0x68], ecx
sub edx, eax
cmp dword [esp + 0x38], 0x1000368b
lea eax, [ecx - 2]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x64], eax
jne 0x102a07b2
mov eax, dword [ebx - 4]
movzx ebx, byte [eax - 3]
test edi, edi
je 0x102a0a98
lea eax, [ecx + ebp]
mov eax, dword [edx + eax*4]
jmp 0x102a0a9d
mov eax, 0x7fff
mov dword [edx + ebx*4], eax
cmp ebx, dword [esi + 0x64]
jb 0x102a07b2
lea eax, [ebx + 1]
pop edi
mov dword [esi + 0x64], eax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x10
push esi
call fcn.102825d0
push 0xa
push esi
call fcn.102825d0
push 0xc
push esi
call fcn.102825d0
push 6
push esi
call fcn.102825d0
int3