Function at 0x4bef60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
test esi, esi
je case.0x4befa8.12
mov eax, dword [esi + 2]
test eax, eax
jne 0x4bef80
xor ecx, ecx
jmp 0x4bef91
cmp word [esi], 7
jne 0x4bef8e
add eax, eax
mov ecx, esi
sub ecx, eax
jmp 0x4bef91
lea ecx, [esi + eax*2]
movzx eax, word [esi]
mov dword [esp + 0x20], ecx
cmp eax, 0x27
ja case.0x4befa8.12
movzx edx, byte [eax + 0x4bf38c]
jmp dword [edx*4 + 0x4bf358]
cmp dword [edi + 0x24], 0
mov eax, dword [edi + 0xa0]
je 0x4befcc
cmp eax, dword [edi + 0xa4]
jne case.0x4befa8.12
jmp case.0x4befa8.7
mov edx, dword [edi + 0xa4]
add edx, 4
cmp eax, edx
jb case.0x4befa8.12
cmp word [eax - 2], 0xa
jne case.0x4befa8.12
cmp word [eax - 4], 0xd
jne case.0x4befa8.12
jmp case.0x4befa8.7
mov eax, dword [edi + 0xa0]
cmp word [eax], 0
jne case.0x4befa8.12
jmp case.0x4befa8.7
mov eax, dword [edi + 0xa0]
cmp word [eax], 0
je case.0x4befa8.12
add eax, 2
mov dword [edi + 0xa0], eax
jmp case.0x4befa8.7
cmp dword [edi + 0x20], 0
lea ebx, [esi + 6]
je 0x4bf070
mov ebp, dword [edi + 0xa0]
mov cx, word [ebx]
cmp cx, word [ebp]
jne case.0x4befa8.12
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bf050
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 1
jbe 0x4bf0cf
push esi
push ebp
push ebx
call fcn.005406b0
jmp 0x4bf0c4
mov edx, dword [edi + 0xa0]
movzx eax, word [edx]
push eax
call fcn.00421c50
movzx ecx, word [ebx]
push ecx
mov si, ax
call fcn.00421c50
add esp, 8
cmp ax, si
jne case.0x4befa8.12
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bf0a0
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 1
jbe 0x4bf0cf
mov edx, dword [edi + 0xa0]
push esi
push edx
push ebx
call fcn.005418b5
add esp, 0xc
test eax, eax
jne case.0x4befa8.12
mov ecx, dword [esp + 0x20]
lea eax, [esi + esi]
add dword [edi + 0xa0], eax
jmp case.0x4befa8.7
mov ecx, dword [edi + 0xa0]
movzx eax, word [ecx]
test ax, ax
je case.0x4befa8.12
mov edx, dword [edi + 0x20]
push edx
push eax
add esi, 6
push esi
call fcn.004be4c0
add esp, 0xc
test eax, eax
je case.0x4befa8.12
add dword [edi + 0xa0], 2
mov ecx, dword [esp + 0x20]
jmp case.0x4befa8.7
mov eax, dword [edi + 0xa0]
movzx eax, word [eax]
test ax, ax
je case.0x4befa8.12
mov ecx, dword [edi + 0x20]
push ecx
push eax
add esi, 6
push esi
call fcn.004be4c0
add esp, 0xc
test eax, eax
jne case.0x4befa8.12
add dword [edi + 0xa0], 2
mov ecx, dword [esp + 0x20]
jmp case.0x4befa8.7
cmp word [ecx], 6
mov ebx, dword [edi + 0xa0]
je 0x4bf1ee
lea ecx, [esi + 6]
mov esi, ecx
test ecx, ecx
jne 0x4bef75
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
movzx esi, word [esi]
mov edx, dword [esp + 0x20]
mov ebx, dword [edi + 0xa0]
push edx
mov ecx, edi
sub esi, 0x14
call fcn.004bef60
test eax, eax
je case.0x4befa8.12
cmp dword [edi + esi*4 + 0x2c], 0
jne case.0x4befa8.0
mov dword [edi + esi*4 + 0x2c], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
movzx esi, word [esi]
mov eax, dword [esp + 0x20]
mov ebx, dword [edi + 0xa0]
push eax
mov ecx, edi
sub esi, 0x1e
call fcn.004bef60
test eax, eax
je case.0x4befa8.12
cmp dword [edi + esi*4 + 0x54], 0
jne 0x4bf1df
mov dword [edi + esi*4 + 0x54], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
cmp word [esi], 6
jne case.0x4befa8.12
lea ecx, [esi + 6]
push ecx
mov ecx, edi
call fcn.004bef60
test eax, eax
jne case.0x4befa8.0
mov dword [edi + 0xa0], ebx
mov eax, dword [esi + 2]
test eax, eax
jne 0x4bf218
xor esi, esi
jmp 0x4bf223
cmp word [esi], 7
jne 0x4bf220
neg eax
lea esi, [esi + eax*2]
cmp word [esi], 6
je 0x4bf1f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
cmp word [ecx], 8
jne 0x4bf245
movzx edx, word [ecx + 6]
mov dword [esp + 0x10], edx
jmp 0x4bf24d
mov dword [esp + 0x10], 0
mov ebx, dword [edi + 0xa0]
xor eax, eax
cmp word [esi], 0xa
mov ecx, edi
setne al
add esi, 6
push esi
mov ebp, eax
mov dword [esp + 0x1c], ebp
call fcn.004be770
mov esi, eax
inc esi
cmp esi, ebp
jbe case.0x4befa8.12
lea ebx, [ebx + esi*2 - 2]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov dword [edi + 0xa0], ebx
test ax, ax
je 0x4bf325
cmp dword [edi + 0x20], 0
je 0x4bf2a8
xor ecx, ecx
cmp word [ebx], ax
sete cl
mov eax, ecx
jmp 0x4bf321
movzx ebx, word [ebx]
mov edx, 0x100
cmp bx, dx
jae 0x4bf2c2
movzx eax, bl
movzx ebp, word [eax*2 + 0x5ecc58]
jmp 0x4bf2da
movzx ecx, bx
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, ax
movzx ebp, bx
test ax, ax
je 0x4bf2da
movzx ebp, ax
mov ebx, dword [esp + 0x10]
mov edx, 0x100
cmp bx, dx
jae 0x4bf2f5
movzx eax, bl
movzx eax, word [eax*2 + 0x5ecc58]
jmp 0x4bf30f
movzx ecx, bx
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, ax
test ax, ax
jne 0x4bf30c
movzx eax, bx
jmp 0x4bf30f
movzx eax, ax
mov ebx, dword [esp + 0x14]
xor edx, edx
cmp bp, ax
mov ebp, dword [esp + 0x18]
sete dl
mov eax, edx
test eax, eax
je 0x4bf339
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.004bef60
test eax, eax
jne case.0x4befa8.0
dec esi
sub ebx, 2
mov dword [esp + 0x14], ebx
cmp esi, ebp
ja 0x4bf280
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4