Function at 0x4e8210
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x34]
push esi
mov esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 8], eax
je 0x4e823d
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push ebp
mov ebp, dword [esi + 0x20]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [esp + 0x44], 0
mov edx, dword [ebx + ebp + 0x38]
lea eax, [ebx + ebp + 0x1c]
push edi
mov edi, dword [eax]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
je 0x4e82bb
cmp dword [esp + 0x44], 0
jne 0x4e84c1
cmp dword [ebp], 1
jg 0x4e84c1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4e8296
test dword [eax + 4], 0x200000
jne 0x4e84c1
mov edx, dword [esi]
call fcn.004c6a40
test eax, 0x200000
jne 0x4e84c1
mov edx, dword [esi + 0x30]
call fcn.004c6a40
test eax, 0x200000
jne 0x4e84c1
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x4e82cf
cmp dword [esi + 0x3c], 0
jne 0x4e84c1
cmp dword [edi + 0x40], 0
jne 0x4e84c1
movzx edx, word [esi + 6]
mov dword [esp + 0x1c], edx
test dl, dl
jns 0x4e82ed
test ecx, ecx
jne 0x4e84c1
cmp dword [eax], 0
je 0x4e84c1
movzx eax, word [edi + 6]
test al, 1
jne 0x4e84c1
test ecx, ecx
je 0x4e831b
cmp dword [ebp], 1
jg 0x4e84c1
cmp dword [esp + 0x44], 0
jne 0x4e84c1
and edx, 1
je 0x4e832b
cmp dword [esp + 0x48], 0
jne 0x4e84c1
cmp dword [esi + 0x30], 0
je 0x4e833b
cmp dword [edi + 0x30], 0
jne 0x4e84c1
cmp dword [esp + 0x44], 0
je 0x4e834c
cmp dword [edi + 0x30], 0
jne 0x4e84c1
test ecx, ecx
je 0x4e8367
cmp dword [esi + 0x24], 0
jne 0x4e84c1
test ecx, ecx
je 0x4e8367
test dx, dx
jne 0x4e84c1
movzx eax, word [edi + 6]
test eax, 0x3000
jne 0x4e84c1
test dword [esp + 0x1c], 0x2000
je 0x4e838a
cmp dword [edi + 0x34], 0
jne 0x4e84c1
test byte [ebx + ebp + 0x2c], 0x20
lea eax, [ebx + ebp + 0x2c]
mov dword [esp + 0x30], eax
jne 0x4e84c1
cmp dword [edi + 0x34], 0
je 0x4e8425
cmp dword [edi + 0x30], 0
jne 0x4e84c1
cmp dword [esp + 0x44], 0
jne 0x4e84c1
test dx, dx
jne 0x4e84c1
cmp dword [ebp], 1
jne 0x4e84c1
mov eax, edi
mov dl, 9
test byte [eax + 6], dl
jne 0x4e84c1
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x4e83ed
cmp byte [eax + 4], 0x74
jne 0x4e84c1
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jl 0x4e84c1
mov eax, ecx
test eax, eax
jne 0x4e83d3
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4e8425
cmp dword [eax], ecx
jle 0x4e8425
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x4e84c1
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x4e8410
mov ecx, dword [ebx + ebp + 0x10]
mov eax, dword [esp + 0x3c]
push 0
push 0
lea edi, [ebx + ebp + 0x10]
push 0
push 0x15
mov dword [esp + 0x3c], edi
mov dword [eax + 0x1ec], ecx
call fcn.004e4090
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e850c
lea esp, [esp]
mov edx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
mov ebp, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
xor eax, eax
push eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x14]
push esi
push eax
mov dword [esp + 0x28], edx
call fcn.004d7d70
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x4e84cb
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x34], edx
jmp 0x4e84df
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x4e84d9
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x41], 0
jne 0x4e87b6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8470
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + ebp + 0xc]
call fcn.004bf680
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
call fcn.004bf680
mov eax, dword [ebx + ebp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.004bf680
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [ebx + ebp + 0xc], ecx
mov dword [ebx + ebp + 0x14], ecx
lea ebx, [ebx + ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebx]
mov dword [edi], ecx
cmp eax, ecx
je 0x4e859d
movzx ecx, word [eax + 0x24]
cmp cx, 1
jne 0x4e8592
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x19c]
test ecx, ecx
jne 0x4e8575
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, dword [esp + 0x10]
mov ebp, esi
jmp 0x4e85a7
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, dword [esp + 0x10]
mov ebp, esi
jmp 0x4e85a7
mov ebx, edi
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
mov eax, dword [ebp + 0x20]
mov esi, dword [edi]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e85cc
mov ecx, dword [esp + 0x30]
mov dl, byte [ecx]
mov byte [esp + 0x3c], dl
jmp 0x4e85ef
push 0
push 0
xor eax, eax
mov ecx, ebx
call fcn.004d8460
add esp, 8
mov dword [ebp + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e87a2
mov ebx, dword [esp + 0x10]
cmp esi, 1
jle 0x4e8619
mov ecx, dword [esp + 0x40]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push eax
push ebx
call fcn.004d2d10
add esp, 0x10
mov dword [ebp + 0x20], eax
cmp byte [ebx + 0x41], 0
mov dword [esp + 0x18], eax
jne 0x4e87a2
test esi, esi
jle 0x4e866b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add edi, 8
mov dword [esp + 0x1c], edi
lea ebx, [eax + ecx + 8]
mov dword [esp + 0x24], esi
mov edi, dword [ebx + 0x38]
mov esi, dword [esp + 0x10]
call fcn.004c78c0
mov eax, dword [esp + 0x1c]
push 0x50
mov esi, eax
push 0
mov ecx, 0x14
mov edi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412eb0
add dword [esp + 0x28], 0x50
add esp, 0xc
add ebx, 0x50
sub dword [esp + 0x24], 1
jne 0x4e8634
mov cl, byte [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov byte [edx + eax + 0x2c], cl
mov edi, dword [ebp]
xor ebx, ebx
cmp dword [edi], ebx
mov dword [esp + 0x3c], ebx
jle 0x4e86cc
jmp 0x4e8690
mov edx, dword [edi + 4]
cmp dword [edx + ebx + 4], 0
lea eax, [edx + ebx]
jne 0x4e86bc
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004cbb20
add esp, 8
mov esi, eax
call fcn.004bf8e0
mov edx, dword [edi + 4]
mov dword [edx + ebx + 4], esi
mov eax, dword [esp + 0x3c]
inc eax
add ebx, 0x18
cmp eax, dword [edi]
mov dword [esp + 0x3c], eax
jl 0x4e8690
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4e86fc
xor ecx, ecx
cmp dword [eax], ecx
jle 0x4e86f2
xor edx, edx
nop
mov edi, dword [eax + 4]
xor ebx, ebx
mov word [edx + edi + 0x14], bx
inc ecx
add edx, 0x18
cmp ecx, dword [eax]
jl 0x4e86e0
mov dword [ebp + 0x30], eax
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x24]
mov edi, dword [esp + 0x10]
push 0
push 0
push eax
push edi
call fcn.004db5a0
mov ecx, dword [ebp + 0x24]
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x4e8751
push 0
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x24], eax
mov eax, dword [esi + 0x2c]
push 0
push eax
push edi
call fcn.004db5a0
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, edi
call fcn.004d7930
mov dword [ebp + 0x2c], eax
mov eax, dword [esi + 0x28]
push 0
push eax
push edi
call fcn.004d1630
add esp, 0x20
mov dword [ebp + 0x28], eax
jmp 0x4e875f
push ecx
mov ecx, edi
call fcn.004d7930
add esp, 4
mov dword [ebp + 0x24], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
push 0
push edx
push eax
push ebp
push edi
call fcn.004dddd0
mov cx, word [esi + 6]
and cx, 1
or word [ebp + 6], cx
mov eax, dword [esi + 0x3c]
add esp, 0x14
test eax, eax
je 0x4e8790
mov dword [ebp + 0x3c], eax
mov dword [esi + 0x3c], 0
mov ebp, dword [ebp + 0x34]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x4e85a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.004c86f0
add esp, 0xc
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret