Function at 0x50ab30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x34]
xor esi, esi
or eax, 0xffffffff
cmp edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 1
mov byte [esp + 8], 0xff
je 0x50ab72
cmp dword [edi + 0x1c], esi
jne 0x50ab72
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x50ab85
cmp dword [eax + 0x1c], esi
jne 0x50ab85
xor eax, eax
mov dword [esp + 0x3c], eax
cmp edi, esi
jne 0x50ab98
cmp eax, esi
jne 0x50ab98
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
push ebx
mov ebx, dword [esp + 0x30]
cmp ebx, esi
push ebp
jne 0x50abb1
mov eax, dword [esp + 0x38]
push eax
call fcn.00509880
add esp, 4
mov ebx, eax
mov ebp, dword [0x73655c]
cmp ebx, esi
mov dword [esp + 0x38], ebx
je 0x50afb3
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x50abe5
push ebx
call fcn.0050b300
mov cl, byte [esi]
add esp, 4
test eax, eax
setne al
cmp cl, al
je 0x50afa4
mov byte [esi], al
test edi, edi
je 0x50ac38
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x147
push ecx
call ebp
cmp eax, 0xffffffff
je 0x50ac0f
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x150
push edx
call ebp
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x14b
push eax
call ebp
mov eax, dword [esp + 0x40]
test eax, eax
je 0x50ac38
push 0xff
push 0
push 0xffffffffffffffff
push edi
call fcn.0050aac0
add esp, 0x10
mov esi, dword [esp + 0x44]
test esi, esi
je 0x50ac8f
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x147
push ecx
call ebp
cmp eax, 0xffffffff
je 0x50ac66
mov edx, dword [esi + 0x1c]
push 0
push eax
push 0x150
push edx
call ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x14b
push eax
call ebp
mov eax, dword [esp + 0x48]
test eax, eax
je 0x50ac8f
push 0xff
push 0
push 0xffffffffffffffff
push esi
call fcn.0050aac0
add esp, 0x10
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x50afa4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push 3
push 0
push 0
push ebx
call fcn.0050c620
mov esi, eax
push 0
lea eax, [esp + 0x44]
push 0x2a
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
call fcn.0050b600
push ebx
mov edi, eax
call fcn.00512430
add esp, 0x30
mov byte [esp + 0x10], al
mov ebx, dword [esp + 0x10]
test esi, esi
je 0x50ae05
mov edx, dword [esp + 0x24]
xor esi, esi
lea eax, [edx - 8]
test eax, eax
mov dword [esp + 0x4c], eax
jle 0x50aed6
mov eax, dword [esp + 0x44]
test eax, eax
je 0x50ad74
mov ecx, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov ah, byte [esi + ecx + 0x14]
mov dl, byte [esi + ecx + 0x16]
mov al, byte [esi + ecx + 0x15]
shl eax, 8
or eax, edx
xor edx, edx
mov dl, byte [esi + ecx + 0x17]
shl eax, 8
or eax, edx
test esi, esi
mov ebp, eax
jle 0x50ad60
mov edi, 0xffffffeb
lea eax, [ecx + 0x15]
sub edi, ecx
xor ecx, ecx
xor edx, edx
mov ch, byte [eax - 1]
mov dl, byte [eax + 1]
mov cl, byte [eax]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 2]
shl ecx, 8
or ecx, edx
cmp ecx, ebp
je 0x50ad5e
add eax, 0x10
lea ecx, [edi + eax]
cmp ecx, esi
jl 0x50ad33
jmp 0x50ad60
xor ebp, ebp
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x14]
push ebx
push edx
push ebp
push eax
call fcn.0050aac0
add esp, 0x10
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x50adf1
mov ecx, dword [esp + 0x18]
xor edx, edx
xor eax, eax
mov dh, byte [esi + ecx + 0x10]
mov al, byte [esi + ecx + 0x12]
mov dl, byte [esi + ecx + 0x11]
shl edx, 8
or edx, eax
xor eax, eax
mov al, byte [esi + ecx + 0x13]
shl edx, 8
or edx, eax
test esi, esi
mov ebp, edx
jle 0x50addd
mov edi, 0xffffffef
lea eax, [ecx + 0x11]
sub edi, ecx
xor ecx, ecx
xor edx, edx
mov ch, byte [eax - 1]
mov dl, byte [eax + 1]
mov cl, byte [eax]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 2]
shl ecx, 8
or ecx, edx
cmp ecx, ebp
je 0x50addb
add eax, 0x10
lea ecx, [edi + eax]
cmp ecx, esi
jl 0x50adb0
jmp 0x50addd
xor ebp, ebp
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push ebx
push edx
push ebp
push eax
call fcn.0050aac0
add esp, 0x10
mov eax, dword [esp + 0x4c]
add esi, 0x10
cmp esi, eax
jl 0x50acf7
jmp 0x50aed6
test edi, edi
je 0x50aed6
mov eax, dword [esp + 0x28]
mov ecx, 0x1e
cmp eax, ecx
jb 0x50aed6
mov edx, dword [esp + 0x1c]
xor eax, eax
xor ebx, ebx
mov ah, byte [edx + 6]
mov bh, byte [edx]
mov al, byte [edx + 7]
mov bl, byte [edx + 1]
add eax, 8
add ebx, 2
lea esi, [eax + 0x20]
cmp ebx, esi
jbe 0x50ae9e
cmp byte [eax + edx + 1], cl
jbe 0x50ae9e
xor ecx, ecx
xor edi, edi
mov ch, byte [eax + edx + 0x1e]
mov cl, byte [eax + edx + 0x1f]
shl ecx, 2
mov ebp, ecx
test ebp, ebp
jle 0x50aed6
mov esi, eax
jmp 0x50ae61
mov edx, dword [esp + 0x1c]
lea eax, [esi + 0x24]
cmp eax, ebx
ja 0x50aed6
mov eax, dword [esp + 0x44]
test eax, eax
je 0x50ae92
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
xor ecx, ecx
mov ch, byte [esi + edx + 0x22]
push eax
mov cl, byte [esi + edx + 0x23]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.0050aac0
add esp, 0x10
add edi, 4
add esi, 4
cmp edi, ebp
jl 0x50ae5d
jmp 0x50aed6
lea ecx, [eax + 0x14]
cmp ebx, ecx
jb 0x50aed6
cmp byte [eax + edx + 1], 0x12
jb 0x50aed6
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x50aed6
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
xor ecx, ecx
mov ch, byte [eax + edx + 0x12]
mov cl, byte [eax + edx + 0x13]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.0050aac0
add esp, 0x10
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x50af36
mov eax, dword [ebx + 0x1c]
mov ebp, dword [0x73655c]
push 0
push 0
push 0x146
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x50af3c
test edi, edi
jle 0x50af3c
cmp dword [esp + 0x20], 0xffffffff
je 0x50af3c
xor esi, esi
test edi, edi
jle 0x50af3c
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0x150
push ecx
call ebp
cmp eax, dword [esp + 0x20]
je 0x50af26
inc esi
cmp esi, edi
jl 0x50af0b
jmp 0x50af3c
mov edx, dword [ebx + 0x1c]
push 0
push esi
push 0x14e
push edx
call ebp
jmp 0x50af3c
mov ebp, dword [0x73655c]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x50af9c
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x146
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x50af9c
test edi, edi
jle 0x50af9c
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xffffffff
je 0x50af9c
xor esi, esi
test edi, edi
jle 0x50af9c
mov ecx, dword [esp + 0x44]
push 0
push esi
push 0x150
mov edx, dword [ecx + 0x1c]
push edx
call ebp
cmp eax, ebx
je 0x50af8a
inc esi
cmp esi, edi
jl 0x50af6d
jmp 0x50af9c
mov eax, dword [esp + 0x44]
push 0
push esi
push 0x14e
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x34], ebx
je 0x50afb3
push ebx
call fcn.004f5730
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x50afc4
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50afcf
push eax
call esi
test edi, edi
je 0x50b03b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x50b000
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x146
push edx
call ebp
test eax, eax
jne 0x50b000
mov eax, dword [esp + 0x10]
push eax
push 0
push 0xffffffffffffffff
push edi
call fcn.0050aac0
add esp, 0x10
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x146
push ecx
call ebp
cmp eax, 0xffffffff
je 0x50b03b
test eax, eax
jle 0x50b03b
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x147
push edx
call ebp
cmp eax, 0xffffffff
jne 0x50b03b
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x14e
push eax
call ebp
mov esi, dword [esp + 0x44]
test esi, esi
je 0x50b0aa
mov eax, dword [esp + 0x48]
test eax, eax
je 0x50b06f
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x146
push ecx
call ebp
test eax, eax
jne 0x50b06f
mov edx, dword [esp + 0x10]
push edx
push eax
push 0xffffffffffffffff
push esi
call fcn.0050aac0
add esp, 0x10
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x146
push eax
call ebp
cmp eax, 0xffffffff
je 0x50b0aa
test eax, eax
jle 0x50b0aa
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x147
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x50b0aa
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x14e
push edx
call ebp
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret