Function at 0x51db40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, ecx
movzx ecx, byte [ebx]
cmp ecx, 0x6b
push esi
push edi
ja case.0x51db67.64
mov esi, dword [esp + 0x4c]
lea ecx, [ecx]
movzx eax, byte [ecx + 0x51e1b0]
jmp dword [eax*4 + 0x51e130]
mov ecx, dword [esi + 0x14]
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
mov eax, dword [esi + 0x18]
add eax, ecx
mov ecx, dword [esi + 8]
shl edx, 1
shl edi, 1
add ecx, dword [esi + 4]
jmp 0x51dce2
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x14]
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
sub eax, ecx
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0x18]
lea edx, [edx + edx - 0xff]
lea edi, [edi + edi - 0xff]
jmp 0x51dce2
mov ecx, dword [esi + 0x10]
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
mov eax, dword [esi + 0x18]
add eax, ecx
mov ecx, dword [esi + 8]
shl edx, 1
shl edi, 1
add ecx, dword [esi]
jmp 0x51dce2
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
sub eax, ecx
mov ecx, dword [esi]
sub ecx, dword [esi + 0x18]
lea edx, [edx + edx - 0xff]
lea edi, [edi + edi - 0xff]
jmp 0x51dce2
mov ecx, dword [esi + 0x10]
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
mov eax, dword [esi + 0x14]
add eax, ecx
mov ecx, dword [esi + 4]
shl edx, 1
shl edi, 1
add ecx, dword [esi]
jmp 0x51dce2
movzx edx, byte [ebx + 1]
movzx edi, byte [ebx + 2]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x10]
sub eax, ecx
mov ecx, dword [esi]
lea edx, [edx + edx - 0xff]
lea edi, [edi + edi - 0xff]
jmp 0x51dcdf
movzx eax, byte [ebx + 1]
mov ecx, dword [esi + 0x14]
lea edx, [eax + eax*2]
movzx eax, byte [ebx + 2]
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x18]
add eax, ecx
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
add ecx, dword [esi]
jmp 0x51dce2
movzx eax, byte [ebx + 1]
mov ecx, dword [esi + 8]
sub eax, 0x55
lea edx, [eax + eax*2]
movzx eax, byte [ebx + 2]
sub eax, 0x55
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x14]
sub eax, ecx
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0x18]
add ecx, dword [esi]
jmp 0x51dce2
movzx eax, byte [ebx + 1]
mov ecx, dword [esi + 4]
sub eax, 0x55
lea edx, [eax + eax*2]
movzx eax, byte [ebx + 2]
sub eax, 0x55
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x18]
sub eax, ecx
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0x14]
add ecx, dword [esi]
jmp 0x51dce2
movzx eax, byte [ebx + 1]
mov ecx, dword [esi + 8]
sub eax, 0xaa
lea edx, [eax + eax*2]
movzx eax, byte [ebx + 2]
sub eax, 0xaa
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x10]
sub eax, ecx
sub eax, dword [esi + 4]
mov ecx, dword [esi]
sub ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
add ebx, 4
cmp ecx, edi
jg 0x51dcf6
cmp eax, edx
jge case.0x51db67.56
jmp 0x51e054
cmp eax, edx
movzx edi, byte [ebx - 1]
jl 0x51dd05
add ebx, edi
jmp 0x51e054
push ebx
push esi
mov ecx, ebp
call fcn.0051db40
add ebx, edi
jmp 0x51e054
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 1]
mov edi, dword [esi + ecx*4 - 0x30]
add ebx, 4
cmp dword [esi + ecx*4 - 0x40], eax
jg 0x51dd37
cmp edi, edx
jge case.0x51db67.56
jmp 0x51e054
movzx eax, byte [ebx - 1]
add ebx, eax
cmp edi, edx
jge 0x51e054
mov ecx, ebx
sub ecx, eax
push ecx
push esi
mov ecx, ebp
call fcn.0051db40
jmp 0x51e054
movzx edx, byte [ebx + 1]
mov eax, dword [esi + ecx*4 - 0x80]
add ebx, 3
cmp eax, edx
jle 0x51e054
movzx eax, byte [ebx - 1]
mov edi, dword [esi + ecx*4 - 0x70]
add ebx, eax
cmp edi, edx
jg 0x51e054
mov edx, ebx
sub edx, eax
push edx
push esi
mov ecx, ebp
call fcn.0051db40
jmp 0x51e054
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx + 4]
movzx edx, byte [ebx + 2]
mov dword [esp + 0x50], eax
mov eax, dword [esi + ecx*4 - 0x7c]
mov dword [esp + 0x4c], eax
movzx eax, byte [ebx + 3]
shl eax, 8
add eax, edi
mov edi, dword [esi + ecx*4 - 0x8c]
add ebx, 7
cmp edi, edx
jg 0x51ddd2
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
jge case.0x51db67.56
add ebx, eax
jmp 0x51e054
movzx ecx, byte [ebx - 2]
movzx edx, byte [ebx - 1]
mov edi, dword [esp + 0x4c]
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x50]
add ebx, ecx
cmp edi, edx
jge 0x51e054
sub eax, ecx
add eax, ebx
push eax
push esi
mov ecx, ebp
call fcn.0051db40
jmp 0x51e054
movzx eax, byte [ebx + 1]
cmp dword [esi + ecx*4 - 0x98], eax
jl case.0x51db67.56
movzx edx, byte [ebx + 2]
cmp dword [esi + ecx*4 - 0x88], edx
jge case.0x51db67.56
add ebx, 3
jmp 0x51e054
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 3]
shl eax, 8
add eax, edx
cmp dword [ebp + ecx*4 - 0x94], eax
jl case.0x51db67.56
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 6]
shl eax, 8
add eax, edx
cmp dword [ebp + ecx*4 - 0x84], eax
jg case.0x51db67.56
add ebx, 7
jmp 0x51e054
movzx eax, byte [ebx + 1]
lea ebx, [ebx + eax + 2]
jmp 0x51e054
movzx ecx, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl ecx, 8
add edx, ebx
lea ebx, [edx + ecx + 3]
jmp 0x51e054
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
movzx edx, byte [ebx + 3]
shl eax, 8
add eax, ecx
shl eax, 8
add edx, ebx
lea ebx, [edx + eax + 4]
jmp 0x51e054
movzx eax, byte [ebx + 1]
add eax, dword [esi + 0x20]
shl eax, cl
mov dword [esp + 0x30], eax
movzx edx, byte [ebx + 2]
add edx, dword [esi + 0x24]
shl edx, cl
mov dword [esp + 0x34], edx
movzx edi, byte [ebx + 3]
add edi, dword [esi + 0x28]
shl edi, cl
mov dword [esp + 0x38], edi
mov edi, dword [esi + 0x30]
add edi, ecx
mov dword [esp + 0x40], edi
mov ecx, 0x10
sub ecx, edi
mov edi, dword [ebp + 0x20]
sar edi, cl
sub edi, eax
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 0x24]
sar edi, cl
sub edi, edx
mov dword [esp + 0x24], edi
mov edi, dword [ebp + 0x28]
sar edi, cl
sub edi, dword [esp + 0x38]
mov dword [esp + 0x28], edi
mov edi, dword [ebp + 0x10]
sar edi, cl
inc edi
sub edi, eax
mov eax, dword [ebp + 0x14]
sar eax, cl
mov dword [esp + 0x10], edi
inc eax
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
sar eax, cl
mov ecx, dword [esp + 0x38]
inc eax
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x3c], ecx
lea esi, [esp + 0x10]
add ebx, 4
jmp 0x51e054
movzx eax, byte [ebx + 1]
lea edx, [esp + 0x10]
cmp esi, edx
je 0x51df70
mov ecx, 0xe
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, edx
add dword [esp + 0x3c], eax
add ebx, 2
jmp 0x51e054
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
shl eax, 8
lea edx, [esp + 0x10]
add eax, ecx
cmp esi, edx
je 0x51df9c
mov ecx, 0xe
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, edx
add dword [esp + 0x3c], eax
add ebx, 3
jmp 0x51e054
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
movzx edx, byte [ebx + 3]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebx + 4]
shl eax, 8
add eax, edx
shl eax, 8
lea edx, [esp + 0x10]
add eax, ecx
cmp esi, edx
je 0x51dfda
mov ecx, 0xe
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, edx
mov dword [esp + 0x3c], eax
add ebx, 5
jmp 0x51e054
movzx eax, byte [ebx + 1]
add ebx, 2
mov dword [esp + ecx*4 - 0x13c], eax
jmp 0x51e035
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl eax, 8
add eax, edx
mov dword [esp + ecx*4 - 0x14c], eax
add ebx, 3
jmp 0x51e035
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 3]
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 4]
shl eax, 8
add eax, edx
mov dword [esp + ecx*4 - 0x15c], eax
add ebx, 5
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
cmp esi, ecx
je 0x51e050
mov ecx, 0xe
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x10]
mov dword [esp + 0x44], eax
movzx ecx, byte [ebx]
cmp ecx, 0x6b
jbe 0x51db60
mov eax, dword [0x96185c]
mov edx, dword [eax]
push ecx
push str.unknown_command__i_n
mov ecx, eax
call dword [edx + 4]
push eax
call fcn.0054db90
mov ecx, dword [0x96185c]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 4]
mov ecx, eax
call fcn.0054dbf0
mov dword [0], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8
movzx ecx, byte [ebx + 1]
jmp 0x51e0f2
movzx ecx, byte [ebx + 1]
movzx edx, byte [ebx + 2]
shl ecx, 8
add ecx, edx
jmp 0x51e0f2
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 3]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
jmp 0x51e0f2
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 4]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
jmp 0x51e0f2
add ecx, 0xffffffd0
mov esi, dword [esi + 0x2c]
mov ebp, dword [ebp]
mov eax, dword [ebp + 4]
add esi, ecx
mov ecx, dword [ebp + 8]
and ecx, 0x7fffffff
cmp eax, ecx
jne 0x51e115
push 4
push ebp
call fcn.0054d2c0
add esp, 8
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [eax + edx*4], esi
mov eax, dword [ebp + 4]
pop edi
inc eax
pop esi
mov dword [ebp + 4], eax
pop ebp
pop ebx
add esp, 0x38
ret 8