Function at 0x5081b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ebx, ecx
mov byte [esp + 0xb8], 0
mov ecx, 0x40
lea edi, [esp + 0xb9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [esi + 1]
dec eax
cmp eax, 0xf
ja case.0x5081f4.3
movzx eax, byte [eax + 0x5085f0]
jmp dword [eax*4 + 0x5085cc]
mov ecx, ebx
call fcn.00502e30
mov cl, byte [esi + 0x26]
push 0x20
mov byte [ebx + 0x71c], cl
add esi, 6
push esi
add ebx, 0x6fc
push ebx
call fcn.0062fff0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 0x4a4]
call fcn.00501440
xor edi, edi
cmp word [esi + 6], di
jbe 0x508284
lea edx, [esi + 8]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0x70
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0062f860
mov edx, dword [esp + 0x1c]
push edx
lea eax, [ebx + 0x4a4]
push eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0xcc], edi
call fcn.00506f50
add dword [esp + 0x28], 0x6c
movzx ecx, word [esi + 6]
add esp, 0x18
inc edi
cmp edi, ecx
jl 0x508245
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 0xa]
dec eax
je 0x5082a2
sub eax, 2
jne 0x5082b6
lea ecx, [ebx + 0x498]
call fcn.0048e2b0
mov edx, dword [esi + 6]
mov dword [ebx + 0x720], edx
xor edi, edi
cmp word [esi + 0xb], di
jbe 0x5082e5
lea eax, [esi + 0xd]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00505a90
mov ecx, dword [esp + 0x10]
movzx edx, word [esi + 0xb]
inc edi
add ecx, 0x26
cmp edi, edx
mov dword [esp + 0x10], ecx
jl 0x5082c5
mov al, byte [esi + 0xa]
cmp al, 2
jb case.0x5081f4.3
cmp al, 3
ja case.0x5081f4.3
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add esi, 6
lea eax, [ebx + 0x4a4]
push esi
push eax
call fcn.005032d0
mov al, byte [ebx + 0x71c]
add esp, 8
cmp al, 2
jne 0x508351
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004fcdd0
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x49c]
je 0x508351
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [ebx + 0x498]
call fcn.004fce60
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 6]
push eax
lea eax, [ebx + 0x4a4]
push eax
call fcn.004ff410
mov edi, eax
add esp, 8
test edi, edi
je 0x5083a9
mov cl, byte [esi + 0x26]
mov byte [edi + 0x25], cl
mov edx, dword [esi + 0x29]
push 0x20
lea eax, [esi + 0x4d]
push eax
lea ecx, [edi + 0x4c]
push ecx
mov dword [edi + 0x28], edx
call fcn.0062fff0
push 0x20
lea edx, [esi + 0x2d]
push edx
add edi, 0x2c
push edi
call fcn.0062fff0
add esp, 0x18
cmp byte [ebx + 0x71c], 2
jne 0x5083dc
lea eax, [esi + 6]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.004fcdd0
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x49c]
je 0x5083dc
mov cl, byte [esi + 0x26]
mov byte [eax + 0x10], cl
mov dx, word [esi + 0x27]
mov word [eax + 0x12], dx
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 0x4a]
xor ecx, ecx
sub eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x24], cl
mov byte [esp + 0x20], cl
mov word [esp + 0x22], cx
je 0x508522
dec eax
jne case.0x5081f4.3
cmp byte [ebx + 0x71c], 2
jne case.0x5081f4.3
push 0x20
lea eax, [esi + 6]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0062fff0
mov ax, word [esi + 0x4d]
mov dx, word [esi + 0x4b]
mov ecx, dword [esi + 0x26]
add esp, 0xc
mov word [esp + 0x22], ax
lea eax, [esi + 0x2a]
push eax
mov word [esp + 0x48], dx
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x20], eax
call fcn.004fcd40
mov edi, dword [esp + 0x10]
cmp edi, dword [ebx + 0x49c]
je 0x5084e2
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.00630b00
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
jne 0x5084b5
mov edx, dword [edi + 8]
push edi
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0xc]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00505a10
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0xc]
push edi
inc eax
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00505a10
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi + 0x26]
mov edi, dword [edi + 4]
mov dword [esp + 0x18], esi
cmp esi, dword [edi + 8]
jne 0x5084fb
mov edx, dword [edi + 0xc]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x508503
mov dword [esp + 0x1c], 0
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00505a10
mov ecx, ebx
call fcn.00500eb0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi + 6]
push ecx
lea edx, [esp + 0xbc]
push 0x6e3cd4
push edx
call fcn.0062f64e
mov eax, dword [esi + 0x26]
add esp, 0xc
push eax
push 0x13
call fcn.004a6440
mov ecx, eax
call fcn.004a6310
test al, al
jne case.0x5081f4.3
mov ecx, dword [0x72c638]
mov edx, dword [esi + 0x26]
push 1
push ecx
push edx
push 0x13
lea eax, [esp + 0xc8]
push eax
mov ecx, 0x74cdb0
call fcn.0046a500
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, 0x74cdb0
call fcn.00465aa0
mov ecx, dword [0x74ceb0]
test ecx, ecx
je case.0x5081f4.3
push esi
call fcn.0050d330
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, 0x74cdb0
call fcn.00465b70
mov ecx, dword [0x74ceb4]
test ecx, ecx
je case.0x5081f4.3
push esi
call fcn.0050d4d0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8