Function at 0x4ba900
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esp + 0x14]
mov al, byte [esi + 0x72]
push edi
push ecx
mov ecx, 0xcda8c0
mov dword [esp + 0x18], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], eax
call fcn.004ba330
test byte [esi + 0x9c], 0x80
je 0x4ba95f
call fcn.004c3810
test eax, eax
jne 0x4ba952
mov edx, dword [0xcc535c]
cmp word [edx + 0x3c], 0x3db
jne 0x4baf0c
mov dword [esp + 0x14], 0x3e3
mov byte [esp + 0x13], 1
mov eax, dword [0xb55668]
cmp esi, dword [eax + 0xdc]
jne 0x4ba97e
push esi
call fcn.00406480
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 1
mov eax, dword [0xcc5174]
mov ecx, dword [esi + 0x7c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + 0x60]
lea edi, [eax + 0x5c]
push edx
mov ecx, edi
call fcn.004bbf70
mov edi, dword [edi + 4]
mov dword [esp + 0x28], eax
cmp eax, edi
je 0x4ba9b8
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x4ba9b8
lea eax, [esp + 0x28]
jmp 0x4ba9c0
mov dword [esp + 0x24], edi
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, ebx
je 0x4ba9d3
mov dword [esp + 0x14], 8
mov byte [esp + 0x13], 1
mov edx, dword [esi + 0x7c]
mov eax, dword [0x541bdc]
cmp edx, eax
jne 0x4ba9fd
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 1
sub eax, 8
neg eax
sbb eax, eax
and eax, 0xfffffec5
add eax, 0x170
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
mov ebx, dword [esi + 0x18c]
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 0xc]
movsx ecx, word [esi + 0x26]
mov dword [esp + 0x40], eax
movsx eax, word [esi + 0x24]
sub eax, ecx
mov ecx, dword [0xcc06f4]
add eax, ecx
mov ecx, esi
lea edx, [eax + eax*4]
lea ebp, [eax + edx*2]
mov edx, dword [esi + 0x190]
mov eax, dword [esi]
shl ebp, 1
sub ebp, ebx
mov ebx, dword [esi + 0xb8]
inc ebp
sub ebx, edx
call dword [eax + 0x98]
mov edx, dword [esp + 0x18]
mov ax, word [esi + 0x3c]
test edx, edx
je 0x4baa91
cmp edx, 6
je 0x4baa91
and eax, 0xffff
mov edi, edx
and edi, 7
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + ecx*4]
lea ecx, [eax + eax*4]
mov eax, dword [edi*4 + 0x505b40]
lea eax, [eax + ecx - 0x88a4]
jmp 0x4baab8
and eax, 0xffff
mov edi, edx
and edi, 7
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + ecx*4]
lea ecx, [eax + eax*4]
mov eax, dword [edi*4 + 0x505b40]
lea eax, [eax + ecx - 0x883b]
mov ecx, dword [edx*4 + 0x505b60]
lea edx, [esp + 0x2c]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x30]
push edx
push ecx
push eax
push 6
push 5
call fcn.00461070
add esp, 0x14
test eax, eax
je 0x4baf0c
mov cx, word [eax + 0x200]
mov dword [esp + 0x20], eax
add eax, 0x200
mov word [esi + 0x1ae], cx
test cx, cx
jbe 0x4baf0c
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4bab1f
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebp
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
lea edx, [ecx + eax + 8]
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x1c], edx
jne 0x4bab39
xor eax, eax
mov ax, word [esi + 0x42]
mov dword [esp + 0x14], eax
mov ecx, dword [0xcc535c]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0xa0]
cmp edi, eax
je 0x4bab5f
mov dword [esp + 0x14], 0x3e3
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
mov dword [0xcfe8d0], ecx
mov dword [0xcda8c4], eax
mov ecx, 0x1000
xor eax, eax
mov edi, 0xcda8c8
mov dword [0xcfe8d4], edx
mov edx, dword [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5573cc]
mov edi, dword [0x5573d0]
mov eax, dword [esp + 0x1c]
sub ebx, ecx
mov ecx, dword [esp + 0x20]
sub ebp, edi
push eax
sub ebp, 0x20
sub ebx, 0x50
push ecx
push edx
mov ecx, 0xcda8c0
mov dword [0xcfe8c8], ebp
mov dword [0xcfe8cc], ebx
call fcn.004b9ec0
mov eax, dword [esi + 0x120]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], edi
je 0x4babe5
cmp word [eax + 0x3c], 0x204e
jne 0x4babe5
mov dword [esp + 0x24], 1
mov ecx, dword [esi + 0xfc]
mov edx, dword [0xcc53c0]
cmp ecx, edi
mov dword [esp + 0x58], 1
je 0x4bac1f
xor eax, eax
mov ax, word [ecx + 0x3c]
xor ecx, ecx
lea eax, [eax + eax*4]
mov cx, word [edx + eax*8 + 0xc]
add ecx, 0xc350
cmp ecx, 0xc56a
jne 0x4bac1f
mov dword [esp + 0x58], edi
mov ecx, dword [esi + 0x114]
cmp ecx, edi
je 0x4bac4b
xor eax, eax
mov ax, word [ecx + 0x3c]
xor ecx, ecx
lea eax, [eax + eax*4]
mov cx, word [edx + eax*8 + 0xc]
add ecx, 0xc350
cmp ecx, 0xc560
jne 0x4bac4b
mov dword [esp + 0x58], edi
cmp word [esi + 0x3c], 0x190
jb 0x4bae60
mov edi, 1
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x58]
test eax, eax
mov al, byte [esi + 0x72]
je 0x4bac7f
and eax, 7
lea eax, [eax + eax*4]
lea edx, [edi + eax*4]
add eax, edx
mov ebp, dword [eax*4 + 0x5054b0]
jmp 0x4bac91
and eax, 7
lea eax, [eax + eax*4]
lea ecx, [edi + eax*4]
add eax, ecx
mov ebp, dword [eax*4 + 0x5057d0]
cmp ebp, 0x15
je 0x4bae52
mov eax, dword [esi + ebp*4 + 0xc8]
test eax, eax
je 0x4bae52
lea edx, [esi + 0xc8]
push edx
push ebp
call fcn.004a89c0
add esp, 8
test eax, eax
jne 0x4bae52
cmp dword [esp + 0x24], 1
jne 0x4bace0
mov eax, dword [esi + ebp*4 + 0xc8]
push eax
call fcn.00406450
add esp, 4
test eax, eax
jne 0x4bae52
mov ecx, dword [esi + ebp*4 + 0xc8]
xor eax, eax
mov ax, word [ecx + 0x3c]
mov ecx, dword [0xcc53c0]
lea edx, [eax + eax*4]
xor eax, eax
mov ax, word [ecx + edx*8 + 0xc]
cmp eax, 0x190
jl 0x4bae52
cmp eax, 0x3e8
jge 0x4bae52
cmp eax, 0x21a
jne 0x4bad27
cmp word [esi + 0x3c], 0x191
jne 0x4bad27
mov eax, 0x3da
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4bad5b
cmp ecx, 6
je 0x4bad5b
and eax, 0xffff
and ecx, 7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx*4 + 0x505b40]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea eax, [eax + edx - 0x88a4]
jmp 0x4bad80
and eax, 0xffff
and ecx, 7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx*4 + 0x505b40]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea eax, [eax + edx - 0x883b]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
push 6
push 5
call fcn.00461070
add esp, 0x14
test eax, eax
je 0x4bae52
mov ecx, dword [eax + 0x204]
mov dword [esp + 0x20], eax
add eax, 0x200
test ecx, ecx
je 0x4bae52
lea eax, [ecx + eax + 8]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x13]
test al, al
jne 0x4badd9
mov ecx, dword [esi + ebp*4 + 0xc8]
xor edi, edi
mov di, word [ecx + 0x42]
mov dword [esp + 0x14], edi
jmp 0x4baddd
mov edi, dword [esp + 0x14]
mov ecx, dword [0xcc535c]
mov edx, dword [ecx]
call dword [edx + 0xa0]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa0]
cmp ebx, eax
je 0x4bae09
mov dword [esp + 0x14], 0x3e3
mov edi, dword [esp + 0x14]
jmp 0x4bae39
mov al, byte [esp + 0x13]
test al, al
jne 0x4bae39
mov ecx, dword [esi + ebp*4 + 0xc8]
xor eax, eax
mov ax, word [ecx + 0x3c]
lea edx, [eax + eax*4]
mov eax, dword [0xcc53c0]
test dword [eax + edx*8], 0x40000
je 0x4bae39
or edi, 0x8000
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push edi
mov ecx, 0xcda8c0
call fcn.004b9ec0
mov edi, dword [esp + 0x28]
inc edi
cmp edi, 0x19
mov dword [esp + 0x28], edi
jl 0x4bac60
push esi
mov ecx, 0xcda8c0
call fcn.004b9bd0
mov edi, dword [esi + 0x1c4]
test edi, edi
je 0x4baf0c
xor eax, eax
mov ax, word [edi + 0xe2]
add eax, 0x4000
push eax
call fcn.004bfa50
mov cx, word [eax + 4]
mov bx, word [eax + 6]
mov eax, dword [esi + 0x10]
mov ebp, dword [esi + 8]
movsx edx, cx
add eax, ebp
mov ebp, dword [esi + 0x14]
mov ecx, edx
sar eax, 1
sar ecx, 1
sub eax, ecx
mov ecx, dword [esi + 0xc]
movsx ebx, bx
add ecx, ebp
mov ebp, ebx
sar ecx, 1
sar ebp, 1
sub ecx, ebp
add edx, eax
add ebx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
mov edx, dword [edi + 0x114]
mov eax, dword [edi + 0x110]
push edx
lea ecx, [esp + 0x3c]
push eax
mov al, byte [edi + 0xd8]
lea edx, [esp + 0x50]
push ecx
mov cx, word [edi + 0xe2]
push edx
push eax
push ecx
call fcn.00455630
mov edi, dword [edi + 0x108]
add esp, 0x1c
test edi, edi
jne 0x4bae79
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4