Function at 0x422c50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esp + 0x418]
push edi
mov eax, dword [esi + 0x7a4]
mov ebp, dword [esi + 0x79c]
test cl, cl
mov edx, dword [eax + 2]
lea edi, [esp + 0x1c]
jne 0x422c91
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x422cf9
mov eax, dword [esp + 0x420]
test eax, eax
je 0x422ca1
mov ebp, dword [ebp + 8]
jmp 0x422ccb
mov ebp, dword [ebp + 8]
cmp word [ebp], 1
je 0x422cc8
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0x7a4]
mov cl, byte [ecx]
mov bl, byte [eax]
cmp bl, cl
je 0x422ccb
mov bl, byte [eax + 6]
add eax, 6
cmp bl, cl
jne 0x422cbc
jmp 0x422ccb
lea eax, [ebp + 2]
mov ecx, dword [eax + 2]
cmp ecx, edx
je 0x422cd6
mov ebp, ecx
jmp 0x422ce2
mov dword [edi], eax
mov eax, dword [ebp + 8]
add edi, 4
test eax, eax
jne 0x422ca1
lea eax, [esp + 0x1c]
cmp edi, eax
jne 0x422cf9
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov cl, byte [edx]
inc edx
mov dword [esp + 0x16], edx
mov dx, word [ebp]
cmp dx, 1
mov byte [esp + 0x14], cl
je 0x422d68
mov eax, dword [ebp + 4]
cmp byte [eax], cl
je 0x422d1f
mov bl, byte [eax + 6]
add eax, 6
cmp bl, cl
jne 0x422d15
xor ecx, ecx
and edx, 0xffff
mov cl, byte [eax + 1]
mov eax, ecx
xor ecx, ecx
mov cx, word [ebp + 2]
dec eax
sub ecx, edx
sub ecx, eax
lea edx, [eax + eax]
cmp edx, ecx
ja 0x422d4f
lea edx, [eax + eax*4]
cmp ecx, edx
sbb eax, eax
neg eax
inc al
mov byte [esp + 0x15], al
jmp 0x422d6f
lea eax, [ecx + 0x55555555]
add ecx, ecx
lea edx, [edx + eax*2]
add eax, edx
xor edx, edx
div ecx
inc al
mov byte [esp + 0x15], al
jmp 0x422d6f
mov dl, byte [ebp + 3]
mov byte [esp + 0x15], dl
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x150]
mov ebx, dword [edi - 4]
sub edi, 4
cmp eax, ecx
mov dword [esp + 0x10], edi
je 0x422d97
add eax, 0xfffffff4
mov dword [esi + 0x154], eax
jmp 0x422e4f
mov eax, dword [esi + 0xac]
test eax, eax
je 0x422dae
mov ecx, dword [eax]
mov dword [esi + 0xac], ecx
jmp 0x422e4f
mov al, byte [esi + 0xaa]
test al, al
jne 0x422dda
mov ecx, esi
mov byte [esi + 0xaa], 0xff
call fcn.00422aa0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x422dda
mov edx, dword [eax]
mov dword [esi + 0xac], edx
jmp 0x422e4f
mov eax, 1
lea ecx, [esi + 0xb0]
cmp dword [ecx], 0
jne 0x422e2e
inc eax
add ecx, 4
cmp eax, 0x26
jne 0x422de5
mov dl, byte [esi + 0xaa]
mov ecx, dword [esi + 0x14c]
dec dl
xor eax, eax
mov byte [esi + 0xaa], dl
mov al, byte [esi + 4]
mov edx, ecx
sub edx, dword [esi + 0x148]
lea eax, [eax + eax*2]
shl eax, 2
cmp edx, eax
jle 0x422e2a
sub ecx, eax
mov dword [esi + 0x14c], ecx
mov eax, ecx
jmp 0x422e4f
xor eax, eax
jmp 0x422e4f
mov edi, dword [esi + eax*4 + 0xac]
push 0
push eax
push edi
mov ecx, dword [edi]
mov dword [esi + eax*4 + 0xac], ecx
mov ecx, esi
call fcn.00422a30
mov eax, edi
mov edi, dword [esp + 0x10]
test eax, eax
je 0x422e70
mov ecx, dword [esp + 0x14]
lea edx, [eax + 2]
mov word [eax], 1
mov dword [eax + 8], ebp
mov dword [edx], ecx
mov cx, word [esp + 0x18]
mov word [edx + 4], cx
mov dword [ebx + 2], eax
test eax, eax
mov ebp, eax
je 0x422e83
lea edx, [esp + 0x1c]
cmp edi, edx
je 0x422e85
jmp 0x422d6f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8